diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-06-15 20:03:51 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-06-15 20:03:51 +0000 |
commit | eb1ad5b4b57e95c8755acccc0796b44072aba209 (patch) | |
tree | bee18258baa39407f1964274e0bceb11d1093855 /src | |
parent | 79ff2e96dec1f6e87bd8e61754dfde9c6502f959 (diff) | |
download | postgresql-eb1ad5b4b57e95c8755acccc0796b44072aba209.tar.gz postgresql-eb1ad5b4b57e95c8755acccc0796b44072aba209.zip |
Patch for current_schemas to optionally include implicit ...
Second cut attached. This one just adds a boolean option to the existing
function to indicate that implicit schemas are to be included (or not).
I remembered the docs as well this time :-)
Dave Page
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/name.c | 4 | ||||
-rw-r--r-- | src/include/catalog/catversion.h | 4 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c index 7092bed875c..e68b11c6fd4 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.37 2002/06/13 06:19:45 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.38 2002/06/15 20:03:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -251,7 +251,7 @@ current_schema(PG_FUNCTION_ARGS) Datum current_schemas(PG_FUNCTION_ARGS) { - List *search_path = fetch_search_path(false); + List *search_path = fetch_search_path(PG_GETARG_BOOL(0)); int nnames = length(search_path); Datum *names; int i; diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index ae10bfb6879..b9af6cd518b 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -37,7 +37,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: catversion.h,v 1.134 2002/06/11 15:44:38 thomas Exp $ + * $Id: catversion.h,v 1.135 2002/06/15 20:03:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 200206111 +#define CATALOG_VERSION_NO 200206151 #endif diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 56831dcfca1..27511d9736b 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.241 2002/06/11 15:41:37 thomas Exp $ + * $Id: pg_proc.h,v 1.242 2002/06/15 20:03:51 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -1761,7 +1761,7 @@ DESCR("convert name to varchar"); DATA(insert OID = 1402 ( current_schema PGNSP PGUID 12 f f f t f s 0 19 "0" 100 0 0 100 current_schema - _null_ )); DESCR("current schema name"); -DATA(insert OID = 1403 ( current_schemas PGNSP PGUID 12 f f f t f s 0 1003 "0" 100 0 0 100 current_schemas - _null_ )); +DATA(insert OID = 1403 ( current_schemas PGNSP PGUID 12 f f f t f s 1 1003 "16" 100 0 0 100 current_schemas - _null_ )); DESCR("current schema search list"); DATA(insert OID = 1404 ( overlay PGNSP PGUID 14 f f f t f i 4 25 "25 25 23 23" 100 0 0 100 "select substring($1, 1, ($3 - 1)) || $2 || substring($1, ($3 + $4))" - _null_ )); |