summaryrefslogtreecommitdiff
path: root/src/test/regress/sql/guc.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/regress/sql/guc.sql')
-rw-r--r--src/test/regress/sql/guc.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/regress/sql/guc.sql b/src/test/regress/sql/guc.sql
index 3e2819449c..d5db101e48 100644
--- a/src/test/regress/sql/guc.sql
+++ b/src/test/regress/sql/guc.sql
@@ -163,6 +163,13 @@ SHOW custom."bad-guc";
SET special."weird name" = 'foo'; -- could be allowed, but we choose not to
SHOW special."weird name";
+-- Check what happens when you try to set a "custom" GUC within the
+-- namespace of an extension.
+SET plpgsql.extra_foo_warnings = true; -- allowed if plpgsql is not loaded yet
+LOAD 'plpgsql'; -- this will throw a warning and delete the variable
+SET plpgsql.extra_foo_warnings = true; -- now, it's an error
+SHOW plpgsql.extra_foo_warnings;
+
--
-- Test DISCARD TEMP
--