From 940f772a292124cb4506ffd7c9c2e953f9db3f33 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 17 May 2002 20:53:33 +0000 Subject: 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. --- src/backend/utils/adt/name.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/utils/adt/name.c') 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; -- cgit v1.2.3