Commit e80f9dfa authored by Bruce Momjian's avatar Bruce Momjian

Add quotes around search_path "$user" so that SHOW output can be used in

SET.
parent 2f1a78e2
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.39 2005/12/20 02:30:35 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.40 2005/12/23 00:38:03 momjian Exp $
--> -->
<chapter Id="runtime-config"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
...@@ -39,7 +39,7 @@ $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.39 2005/12/20 02:30:35 tgl Exp $ ...@@ -39,7 +39,7 @@ $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.39 2005/12/20 02:30:35 tgl Exp $
# This is a comment # This is a comment
log_connections = yes log_connections = yes
log_destination = 'syslog' log_destination = 'syslog'
search_path = '$user, public' search_path = '"$user", public'
</programlisting> </programlisting>
One parameter is specified per line. The equal sign between name and One parameter is specified per line. The equal sign between name and
value is optional. Whitespace is insignificant and blank lines are value is optional. Whitespace is insignificant and blank lines are
...@@ -3117,7 +3117,7 @@ SELECT * FROM parent WHERE key = 2400; ...@@ -3117,7 +3117,7 @@ SELECT * FROM parent WHERE key = 2400;
<para> <para>
The default value for this parameter is The default value for this parameter is
<literal>'$user, public'</literal> (where the second part will be <literal>'"$user", public'</literal> (where the second part will be
ignored if there is no schema named <literal>public</>). ignored if there is no schema named <literal>public</>).
This supports shared use of a database (where no users This supports shared use of a database (where no users
have private schemas, and all share use of <literal>public</>), have private schemas, and all share use of <literal>public</>),
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.50 2005/11/04 23:53:18 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.51 2005/12/23 00:38:03 momjian Exp $ -->
<chapter id="ddl"> <chapter id="ddl">
<title>Data Definition</title> <title>Data Definition</title>
...@@ -1650,7 +1650,7 @@ SHOW search_path; ...@@ -1650,7 +1650,7 @@ SHOW search_path;
<screen> <screen>
search_path search_path
-------------- --------------
$user,public "$user",public
</screen> </screen>
The first element specifies that a schema with the same name as The first element specifies that a schema with the same name as
the current user is to be searched. If no such schema exists, the current user is to be searched. If no such schema exists,
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.302 2005/12/20 02:30:36 tgl Exp $ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.303 2005/12/23 00:38:04 momjian Exp $
* *
*-------------------------------------------------------------------- *--------------------------------------------------------------------
*/ */
...@@ -1902,7 +1902,7 @@ static struct config_string ConfigureNamesString[] = ...@@ -1902,7 +1902,7 @@ static struct config_string ConfigureNamesString[] =
GUC_LIST_INPUT | GUC_LIST_QUOTE GUC_LIST_INPUT | GUC_LIST_QUOTE
}, },
&namespace_search_path, &namespace_search_path,
"$user,public", assign_search_path, NULL "\"$user\",public", assign_search_path, NULL
}, },
{ {
......
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
# - Statement Behavior - # - Statement Behavior -
#search_path = '$user,public' # schema names #search_path = '"$user",public' # schema names
#default_tablespace = '' # a tablespace name, '' uses #default_tablespace = '' # a tablespace name, '' uses
# the default # the default
#check_function_bodies = on #check_function_bodies = on
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment