Skip to content

Commit 4eab018

Browse files
committed
doc: mention that SET TIME ZONE often needs to be quoted
Also mention that time zone abbreviations are not supported. Reported-by: philippe.godfrin@nov.com Discussion: https://postgr.es/m/163888728952.1269.5167822676466793158@wrigleys.postgresql.org Backpatch-through: 10
1 parent 92557ac commit 4eab018

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/src/sgml/ref/set.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PostgreSQL documentation
2222
<refsynopsisdiv>
2323
<synopsis>
2424
SET [ SESSION | LOCAL ] <replaceable class="parameter">configuration_parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | DEFAULT }
25-
SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="parameter">timezone</replaceable> | LOCAL | DEFAULT }
25+
SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | LOCAL | DEFAULT }
2626
</synopsis>
2727
</refsynopsisdiv>
2828

@@ -190,8 +190,8 @@ SELECT setseed(<replaceable>value</replaceable>);
190190
<varlistentry>
191191
<term><literal>TIME ZONE</literal></term>
192192
<listitem>
193-
<para><literal>SET TIME ZONE <replaceable>value</replaceable></literal> is an alias
194-
for <literal>SET timezone TO <replaceable>value</replaceable></literal>. The
193+
<para><literal>SET TIME ZONE '<replaceable>value</replaceable>'</literal> is an alias
194+
for <literal>SET timezone TO '<replaceable>value</replaceable>'</literal>. The
195195
syntax <literal>SET TIME ZONE</literal> allows special syntax
196196
for the time zone specification. Here are examples of valid
197197
values:
@@ -252,7 +252,8 @@ SELECT setseed(<replaceable>value</replaceable>);
252252
</para>
253253

254254
<para>
255-
See <xref linkend="datatype-timezones"/> for more information
255+
Time zone abbreviations are not supported by <command>SET</command>;
256+
see <xref linkend="datatype-timezones"/> for more information
256257
about time zones.
257258
</para>
258259
</listitem>

0 commit comments

Comments
 (0)