]> granicus.if.org Git - postgresql/commitdiff
Add quotes around search_path "$user" so that SHOW output can be used in
authorBruce Momjian <bruce@momjian.us>
Fri, 23 Dec 2005 00:38:04 +0000 (00:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 23 Dec 2005 00:38:04 +0000 (00:38 +0000)
SET.

doc/src/sgml/config.sgml
doc/src/sgml/ddl.sgml
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample

index 8322463cea783d6eb43ca057d458eb38a8370b8e..4317841d12336c4b9d68b720a36de2b3ca6a08f0 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$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">
   <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 $
 # This is a comment
 log_connections = yes
 log_destination = 'syslog'
-search_path = '$user, public'
+search_path = '"$user", public'
 </programlisting>
     One parameter is specified per line. The equal sign between name and
     value is optional. Whitespace is insignificant and blank lines are
@@ -3117,7 +3117,7 @@ SELECT * FROM parent WHERE key = 2400;
 
        <para>
         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</>).
         This supports shared use of a database (where no users
         have private schemas, and all share use of <literal>public</>),
index 75aabc3f70fbe0a76e089cf685cb76e7b1396535..e6b694ed7bfca7a14a43f9c241c076e52d644d02 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $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">
  <title>Data Definition</title>
@@ -1650,7 +1650,7 @@ SHOW search_path;
 <screen>
  search_path
 --------------
$user,public
"$user",public
 </screen>
     The first element specifies that a schema with the same name as
     the current user is to be searched.  If no such schema exists,
index b7c4599a03045f8b45eae0390427ee53e5290694..8bc2d34200857c74e0aedc743ed5f0ea0c8e00ff 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * 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[] =
                        GUC_LIST_INPUT | GUC_LIST_QUOTE
                },
                &namespace_search_path,
-               "$user,public", assign_search_path, NULL
+               "\"$user\",public", assign_search_path, NULL
        },
 
        {
index 94503ddfbb204e995d4e9c21a98abc8a5149fe1d..7fbba7d3310e456fbddcb7c7cdcf1aba8690d635 100644 (file)
 
 # - Statement Behavior -
 
-#search_path = '$user,public'          # schema names
+#search_path = '"$user",public'                # schema names
 #default_tablespace = ''               # a tablespace name, '' uses
                                        # the default
 #check_function_bodies = on