Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite80f9df

Browse files
committed
Add quotes around search_path "$user" so that SHOW output can be used in
SET.
1 parent2f1a78e commite80f9df

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.39 2005/12/20 02:30:35 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.40 2005/12/23 00:38:03 momjian Exp $
33
-->
44
<chapter Id="runtime-config">
55
<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 $
3939
# This is a comment
4040
log_connections = yes
4141
log_destination = 'syslog'
42-
search_path = '$user, public'
42+
search_path = '"$user", public'
4343
</programlisting>
4444
One parameter is specified per line. The equal sign between name and
4545
value is optional. Whitespace is insignificant and blank lines are
@@ -3117,7 +3117,7 @@ SELECT * FROM parent WHERE key = 2400;
31173117

31183118
<para>
31193119
The default value for this parameter is
3120-
<literal>'$user, public'</literal> (where the second part will be
3120+
<literal>'"$user", public'</literal> (where the second part will be
31213121
ignored if there is no schema named <literal>public</>).
31223122
This supports shared use of a database (where no users
31233123
have private schemas, and all share use of <literal>public</>),

‎doc/src/sgml/ddl.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.50 2005/11/04 23:53:18 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.51 2005/12/23 00:38:03 momjian Exp $ -->
22

33
<chapter id="ddl">
44
<title>Data Definition</title>
@@ -1650,7 +1650,7 @@ SHOW search_path;
16501650
<screen>
16511651
search_path
16521652
--------------
1653-
$user,public
1653+
"$user",public
16541654
</screen>
16551655
The first element specifies that a schema with the same name as
16561656
the current user is to be searched. If no such schema exists,

‎src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.302 2005/12/20 02:30:36 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.303 2005/12/23 00:38:04 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1902,7 +1902,7 @@ static struct config_string ConfigureNamesString[] =
19021902
GUC_LIST_INPUT |GUC_LIST_QUOTE
19031903
},
19041904
&namespace_search_path,
1905-
"$user,public",assign_search_path,NULL
1905+
"\"$user\",public",assign_search_path,NULL
19061906
},
19071907

19081908
{

‎src/backend/utils/misc/postgresql.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364

365365
# - Statement Behavior -
366366

367-
#search_path = '$user,public'# schema names
367+
#search_path = '"$user",public'# schema names
368368
#default_tablespace = ''# a tablespace name, '' uses
369369
# the default
370370
#check_function_bodies = on

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp