diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-01 03:34:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-01 03:34:27 +0000 |
commit | 838fe25a9532ab2e9b9b7517fec94e804cf3da81 (patch) | |
tree | 5d71f950bc362497a57e4a5a375907a41325aec4 /src/backend/utils/misc/guc.c | |
parent | 6df395f63a3f4be10b8f5b81dea1b426021ce5ce (diff) |
Create a new GUC variable search_path to control the namespace search
path. The default behavior if no per-user schemas are created is that
all users share a 'public' namespace, thus providing behavior backwards
compatible with 7.2 and earlier releases. Probably the semantics and
default setting will need to be fine-tuned, but this is a start.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index d1f6d2bdb00..9c35f0949aa 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -4,7 +4,7 @@ * Support for grand unified configuration scheme, including SET * command, configuration file, and command line options. * - * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.63 2002/03/24 04:31:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.64 2002/04/01 03:34:26 tgl Exp $ * * Copyright 2000 by PostgreSQL Global Development Group * Written by Peter Eisentraut <peter_e@gmx.net>. @@ -21,6 +21,7 @@ #include "utils/guc.h" #include "access/xlog.h" +#include "catalog/namespace.h" #include "commands/async.h" #include "fmgr.h" #include "libpq/auth.h" @@ -575,6 +576,11 @@ static struct config_string }, { + "search_path", PGC_USERSET, PGC_S_DEFAULT, &namespace_search_path, + "$user,public", check_search_path, assign_search_path + }, + + { "krb_server_keyfile", PGC_POSTMASTER, PGC_S_DEFAULT, &pg_krb_server_keyfile, PG_KRB_SRVTAB, NULL, NULL }, @@ -899,7 +905,7 @@ set_config_option(const char *name, const char *value, int elevel; bool makeDefault; - if (context == PGC_SIGHUP) + if (context == PGC_SIGHUP || source == PGC_S_DEFAULT) elevel = DEBUG1; else if (guc_session_init) elevel = INFO; @@ -1414,7 +1420,7 @@ ProcessGUCArray(ArrayType *array, GucSource source) ParseLongOption(s, &name, &value); if (!value) { - elog(WARNING, "cannot to parse setting \"%s\"", name); + elog(WARNING, "cannot parse setting \"%s\"", name); continue; } |