Skip to content

Commit

Permalink
Add tests to check GUC names
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyaaa committed Aug 2, 2024
1 parent e9eb117 commit 56d311a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions regress/expected/name_validation.out
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,14 @@ NOTICE: graph "graph123" has been dropped

(1 row)

--
-- Test GUC names
--
SET age.enable_containment TO ON;
SET age.invalid_parameter TO ON;
ERROR: invalid configuration parameter name "age.invalid_parameter"
DETAIL: "age" is a reserved prefix.
SET any_placeholder.any_parameter TO ON;
--
-- End of test
--
7 changes: 7 additions & 0 deletions regress/sql/name_validation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ SELECT create_elabel('graph123', 'elabel0123456789012345678901234567890123456789
-- clean up
SELECT drop_graph('graph123', true);

--
-- Test GUC names
--
SET age.enable_containment TO ON;
SET age.invalid_parameter TO ON;
SET any_placeholder.any_parameter TO ON;

--
-- End of test
--

0 comments on commit 56d311a

Please sign in to comment.