diff options
author | Pavan Deolasee | 2015-06-10 10:54:34 +0000 |
---|---|---|
committer | Pavan Deolasee | 2015-06-10 10:54:34 +0000 |
commit | 95ebf2e37406cb57d024355d8f0a405ebed07e65 (patch) | |
tree | ad0b854a058d46fb488fb2187174e44755bc443b /src | |
parent | 10a864f94e6f51dffe94d18a742b46abbeaf73c2 (diff) |
Fix alternate expected output file for the test case 'guc'
Diffstat (limited to 'src')
-rw-r--r-- | src/test/regress/expected/guc_1.out | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/regress/expected/guc_1.out b/src/test/regress/expected/guc_1.out index d10e430a2b..de51c28ac4 100644 --- a/src/test/regress/expected/guc_1.out +++ b/src/test/regress/expected/guc_1.out @@ -29,6 +29,7 @@ SELECT '2006-08-13 12:34:56'::timestamptz; -- SET LOCAL has no effect outside of a transaction SET LOCAL vacuum_cost_delay TO 50; +WARNING: SET LOCAL can only be used in transaction blocks SHOW vacuum_cost_delay; vacuum_cost_delay ------------------- @@ -36,6 +37,7 @@ SHOW vacuum_cost_delay; (1 row) SET LOCAL datestyle = 'SQL'; +WARNING: SET LOCAL can only be used in transaction blocks SHOW datestyle; DateStyle ----------- @@ -629,3 +631,19 @@ select myfunc(1), current_setting('work_mem'); 2MB | 2MB (1 row) +-- Normally, CREATE FUNCTION should complain about invalid values in +-- function SET options; but not if check_function_bodies is off, +-- because that creates ordering hazards for pg_dump +create function func_with_bad_set() returns int as $$ select 1 $$ +language sql +set default_text_search_config = no_such_config; +NOTICE: text search configuration "no_such_config" does not exist +ERROR: invalid value for parameter "default_text_search_config": "no_such_config" +set check_function_bodies = off; +create function func_with_bad_set() returns int as $$ select 1 $$ +language sql +set default_text_search_config = no_such_config; +NOTICE: text search configuration "no_such_config" does not exist +select func_with_bad_set(); +ERROR: invalid value for parameter "default_text_search_config": "no_such_config" +reset check_function_bodies; |