mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
Fix regression test for force_parallel_mode=on.
Commit 14a254fb52423c57059851abafbd1247261f7f03 managed not to exercise the code it was intended to test, and the comment explaining why no "parallel worker" line showed up in the context wasn't right. Amit Kapila, tweaked by me per Amit's analysis.
This commit is contained in:
parent
e472ce9624
commit
12f862099d
@ -44,11 +44,12 @@ explain (costs off)
|
|||||||
|
|
||||||
do $$begin
|
do $$begin
|
||||||
-- Provoke error in worker. The original message CONTEXT contains a worker
|
-- Provoke error in worker. The original message CONTEXT contains a worker
|
||||||
-- PID that must be hidden in the test output. PL/pgSQL conveniently
|
-- PID that must be hidden in the test output.
|
||||||
-- substitutes its own CONTEXT.
|
perform stringu1::int2 from tenk1 where unique1 = 1;
|
||||||
select stringu1::int2 from tenk1 where unique1 = 1;
|
exception
|
||||||
|
when others then
|
||||||
|
raise 'SQLERRM: %', sqlerrm;
|
||||||
end$$;
|
end$$;
|
||||||
ERROR: invalid input syntax for integer: "BAAAAA"
|
ERROR: SQLERRM: invalid input syntax for integer: "BAAAAA"
|
||||||
CONTEXT: SQL statement "select stringu1::int2 from tenk1 where unique1 = 1"
|
CONTEXT: PL/pgSQL function inline_code_block line 7 at RAISE
|
||||||
PL/pgSQL function inline_code_block line 5 at SQL statement
|
|
||||||
rollback;
|
rollback;
|
||||||
|
@ -21,9 +21,11 @@ explain (costs off)
|
|||||||
|
|
||||||
do $$begin
|
do $$begin
|
||||||
-- Provoke error in worker. The original message CONTEXT contains a worker
|
-- Provoke error in worker. The original message CONTEXT contains a worker
|
||||||
-- PID that must be hidden in the test output. PL/pgSQL conveniently
|
-- PID that must be hidden in the test output.
|
||||||
-- substitutes its own CONTEXT.
|
perform stringu1::int2 from tenk1 where unique1 = 1;
|
||||||
select stringu1::int2 from tenk1 where unique1 = 1;
|
exception
|
||||||
|
when others then
|
||||||
|
raise 'SQLERRM: %', sqlerrm;
|
||||||
end$$;
|
end$$;
|
||||||
|
|
||||||
rollback;
|
rollback;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user