This effectively reverts commit
9edc97b71 (although the test is now
in a different place and has different contents). We don't need that
hack anymore, because since commit
4b93f5799, this test case no longer
throws an error and so there's no displayed CONTEXT that could vary
depending on CLOBBER_CACHE_ALWAYS. The underlying unstable-output
problem isn't really gone, of course, but it no longer manifests here.
ERROR: null value cannot be assigned to variable "x" declared NOT NULL
CONTEXT: PL/pgSQL function inline_code_block line 3 during statement block local variable initialization
-- Check that variables are reinitialized on block re-entry.
-\set VERBOSITY terse \\ -- needed for output stability
do $$
begin
for i in 1..3 loop
NOTICE: y = 3
NOTICE: r = <NULL>
NOTICE: c = <NULL>
-\set VERBOSITY default
-- Check enforcement of domain constraints during initialization
do $$
declare x int_nn; -- fail
-- Check that variables are reinitialized on block re-entry.
-\set VERBOSITY terse \\ -- needed for output stability
do $$
begin
for i in 1..3 loop
end;
end loop;
end$$;
-\set VERBOSITY default
-- Check enforcement of domain constraints during initialization