On 6/17/16 9:26 AM, Robert Haas wrote:
On Wed, Jun 15, 2016 at 5:10 PM, Robert Haas <robertmh...@gmail.com> wrote:
I'm comfortable with that. Feel free to make it so, unless you want
me to do it for some reason.
Time is short, so I did this.
With that, I think it would be preferable to undo the context-hiding
dance in the tests, as in the attached patch, no?
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
diff --git a/src/test/regress/expected/select_parallel.out
b/src/test/regress/expected/select_parallel.out
index 3c90640..aac8db8 100644
--- a/src/test/regress/expected/select_parallel.out
+++ b/src/test/regress/expected/select_parallel.out
@@ -95,14 +95,7 @@ explain (costs off)
Index Cond: (unique1 = 1)
(5 rows)
-do $$begin
- -- Provoke error, possibly in worker. If this error happens to occur in
- -- the worker, there will be a CONTEXT line which must be hidden.
- perform stringu1::int2 from tenk1 where unique1 = 1;
- exception
- when others then
- raise 'SQLERRM: %', sqlerrm;
-end$$;
-ERROR: SQLERRM: invalid input syntax for integer: "BAAAAA"
-CONTEXT: PL/pgSQL function inline_code_block line 7 at RAISE
+select stringu1::int2 from tenk1 where unique1 = 1;
+ERROR: invalid input syntax for integer: "BAAAAA"
+CONTEXT: parallel worker
rollback;
diff --git a/src/test/regress/sql/select_parallel.sql
b/src/test/regress/sql/select_parallel.sql
index a8cd993..70bf764 100644
--- a/src/test/regress/sql/select_parallel.sql
+++ b/src/test/regress/sql/select_parallel.sql
@@ -40,13 +40,6 @@
explain (costs off)
select stringu1::int2 from tenk1 where unique1 = 1;
-do $$begin
- -- Provoke error, possibly in worker. If this error happens to occur in
- -- the worker, there will be a CONTEXT line which must be hidden.
- perform stringu1::int2 from tenk1 where unique1 = 1;
- exception
- when others then
- raise 'SQLERRM: %', sqlerrm;
-end$$;
+select stringu1::int2 from tenk1 where unique1 = 1;
rollback;
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers