Debian Codegraph @

contrib/auto_explain/expected/alter_reset.out

raw
1 --
2 -- This tests resetting unknown custom GUCs with reserved prefixes. There's
3 -- nothing specific to auto_explain; this is just a convenient place to put
4 -- this test.
5 --
6 SELECT current_database() AS datname \gset
7 CREATE ROLE regress_ae_role;
8 ALTER DATABASE :"datname" SET auto_explain.bogus = 1;
9 ALTER ROLE regress_ae_role SET auto_explain.bogus = 1;
10 ALTER ROLE regress_ae_role IN DATABASE :"datname" SET auto_explain.bogus = 1;
11 ALTER SYSTEM SET auto_explain.bogus = 1;
12 LOAD 'auto_explain';
13 WARNING: invalid configuration parameter name "auto_explain.bogus", removing it
14 DETAIL: "auto_explain" is now a reserved prefix.
15 ALTER DATABASE :"datname" RESET auto_explain.bogus;
16 ALTER ROLE regress_ae_role RESET auto_explain.bogus;
17 ALTER ROLE regress_ae_role IN DATABASE :"datname" RESET auto_explain.bogus;
18 ALTER SYSTEM RESET auto_explain.bogus;
19 DROP ROLE regress_ae_role;