Debian Codegraph @

contrib/auto_explain/sql/alter_reset.sql

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
7 SELECT current_database() AS datname \gset
8 CREATE ROLE regress_ae_role;
9
10 ALTER DATABASE :"datname" SET auto_explain.bogus = 1;
11 ALTER ROLE regress_ae_role SET auto_explain.bogus = 1;
12 ALTER ROLE regress_ae_role IN DATABASE :"datname" SET auto_explain.bogus = 1;
13 ALTER SYSTEM SET auto_explain.bogus = 1;
14
15 LOAD 'auto_explain';
16
17 ALTER DATABASE :"datname" RESET auto_explain.bogus;
18 ALTER ROLE regress_ae_role RESET auto_explain.bogus;
19 ALTER ROLE regress_ae_role IN DATABASE :"datname" RESET auto_explain.bogus;
20 ALTER SYSTEM RESET auto_explain.bogus;
21
22 DROP ROLE regress_ae_role;