diff options
| author | Tom Lane | 2002-05-17 20:53:33 +0000 |
|---|---|---|
| committer | Tom Lane | 2002-05-17 20:53:33 +0000 |
| commit | 940f772a292124cb4506ffd7c9c2e953f9db3f33 (patch) | |
| tree | 6f0a70387594f7977dff9808ea8956263eb8f31a /src/backend/utils/adt/name.c | |
| parent | 5f21560ae8f7387cfe4e109a5bdc01c58f82fbe5 (diff) | |
Support temporary setting of search path during CREATE SCHEMA; this
allows the example in the CREATE SCHEMA ref page to actually work now.
Also, clean up when the transaction that initially creates a temp-table
namespace is later aborted. Simplify internal representation of search
path by folding special cases into the main list.
Diffstat (limited to 'src/backend/utils/adt/name.c')
| -rw-r--r-- | src/backend/utils/adt/name.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c index 891bae2a5c9..8ffaa6e4f44 100644 --- a/src/backend/utils/adt/name.c +++ b/src/backend/utils/adt/name.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.34 2002/04/26 01:24:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.35 2002/05/17 20:53:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -235,7 +235,7 @@ session_user(PG_FUNCTION_ARGS) Datum current_schema(PG_FUNCTION_ARGS) { - List *search_path = fetch_search_path(); + List *search_path = fetch_search_path(false); char *nspname; if (search_path == NIL) @@ -247,7 +247,7 @@ current_schema(PG_FUNCTION_ARGS) Datum current_schemas(PG_FUNCTION_ARGS) { - List *search_path = fetch_search_path(); + List *search_path = fetch_search_path(false); int nnames = length(search_path); Datum *names; int i; |
