diff options
author | Michael Paquier | 2012-07-31 00:27:40 +0000 |
---|---|---|
committer | Michael Paquier | 2012-07-31 00:27:40 +0000 |
commit | 6eb90587eee34018513fabee3cc23810c9539b5a (patch) | |
tree | 94c90c59eb0fef57227f17f168ed37059ede480d | |
parent | dab0f4d2e8f355b381bef9ea850be6517821ac80 (diff) |
Fix for test case guc
New tests have been introduced in 9.2.
-rw-r--r-- | src/test/regress/expected/guc_1.out | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/src/test/regress/expected/guc_1.out b/src/test/regress/expected/guc_1.out index 07dea9d72f..9fe207f140 100644 --- a/src/test/regress/expected/guc_1.out +++ b/src/test/regress/expected/guc_1.out @@ -518,6 +518,31 @@ SELECT current_user = 'temp_reset_user'; DROP ROLE temp_reset_user; -- +-- search_path should react to changes in pg_namespace +-- +set search_path = foo, public, not_there_initially; +select current_schemas(false); + current_schemas +----------------- + {public} +(1 row) + +create schema not_there_initially; +select current_schemas(false); + current_schemas +------------------------------ + {public,not_there_initially} +(1 row) + +drop schema not_there_initially; +select current_schemas(false); + current_schemas +----------------- + {public} +(1 row) + +reset search_path; +-- -- Tests for function-local GUC settings -- set work_mem = '3MB'; @@ -530,14 +555,7 @@ select report_guc('work_mem'), current_setting('work_mem'); 1MB | 3MB (1 row) --- this should draw only a warning -alter function report_guc(text) set search_path = no_such_schema; -NOTICE: schema "no_such_schema" does not exist --- with error occurring here -select report_guc('work_mem'), current_setting('work_mem'); -ERROR: invalid value for parameter "search_path": "no_such_schema" -DETAIL: schema "no_such_schema" does not exist -alter function report_guc(text) reset search_path set work_mem = '2MB'; +alter function report_guc(text) set work_mem = '2MB'; select report_guc('work_mem'), current_setting('work_mem'); report_guc | current_setting ------------+----------------- @@ -600,7 +618,7 @@ set work_mem = '1MB'; select myfunc(0); ERROR: division by zero CONTEXT: SQL statement "SELECT 1/$1" -PL/pgSQL function "myfunc" line 4 at PERFORM +PL/pgSQL function myfunc(integer) line 4 at PERFORM select current_setting('work_mem'); current_setting ----------------- |