Use comma+space as the separator in the default search_path.
authorHeikki Linnakangas <[email protected]>
Wed, 20 Aug 2014 09:04:32 +0000 (12:04 +0300)
committerHeikki Linnakangas <[email protected]>
Wed, 20 Aug 2014 09:06:08 +0000 (12:06 +0300)
While the space is optional, it seems nicer to be consistent with what
you get if you do "SET search_path=...". SET always normalizes the
separator to be comma+space.

Christoph Martin

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

index ca8a45e9c6303e44ad9fc122f42c672d0cb93ea9..0fcd9f87062c7eb7c90c5c105fa81644edb91873 100644 (file)
@@ -1746,7 +1746,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 60e4354f6bc023fd83a21ea87cc867bba0aa8a1e..a8a17c2fe0b78badbbc88903d1ce2464aa4de9a9 100644 (file)
@@ -2912,7 +2912,7 @@ static struct config_string ConfigureNamesString[] =
                        GUC_LIST_INPUT | GUC_LIST_QUOTE
                },
                &namespace_search_path,
-               "\"$user\",public",
+               "\"$user\", public",
                check_search_path, assign_search_path, NULL
        },
 
index 3f3e706b2ae4f481d8bac2cf852ca6fd7197bd77..df98b02d788b6e70d5b71010bd8d0d25223f129c 100644 (file)
 
 # - Statement Behavior -
 
-#search_path = '"$user",public'                # schema names
+#search_path = '"$user", public'       # schema names
 #default_tablespace = ''               # a tablespace name, '' uses the default
 #temp_tablespaces = ''                 # a list of tablespace names, '' uses
                                        # only default tablespace