Skip to content

Commit 468377f

Browse files
committed
doc: improve ALTER SYSTEM description of value list quoting
Reported-by: splarv@ya.ru Discussion: https://postgr.es/m/167105927893.1897.13227723035830709578@wrigleys.postgresql.org Backpatch-through: 11
1 parent 55ce8fc commit 468377f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc/src/sgml/ref/alter_system.sgml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PostgreSQL documentation
2121

2222
<refsynopsisdiv>
2323
<synopsis>
24-
ALTER SYSTEM SET <replaceable class="parameter">configuration_parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | DEFAULT }
24+
ALTER SYSTEM SET <replaceable class="parameter">configuration_parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> [, ...] | DEFAULT }
2525

2626
ALTER SYSTEM RESET <replaceable class="parameter">configuration_parameter</replaceable>
2727
ALTER SYSTEM RESET ALL
@@ -82,9 +82,17 @@ ALTER SYSTEM RESET ALL
8282
New value of the parameter. Values can be specified as string
8383
constants, identifiers, numbers, or comma-separated lists of
8484
these, as appropriate for the particular parameter.
85+
Values that are neither numbers nor valid identifiers must be quoted.
8586
<literal>DEFAULT</literal> can be written to specify removing the
8687
parameter and its value from <filename>postgresql.auto.conf</filename>.
8788
</para>
89+
90+
<para>
91+
For some list-accepting parameters, quoted values will produce
92+
double-quoted output to preserve whitespace and commas; for others,
93+
double-quotes must be used inside single-quoted strings to get
94+
this effect.
95+
</para>
8896
</listitem>
8997
</varlistentry>
9098
</variablelist>

0 commit comments

Comments
 (0)