Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 332b350

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: [email protected] Discussion: https://postgr.es/m/[email protected] Backpatch-through: 10
1 parent c713194 commit 332b350

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

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

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

0 commit comments

Comments
 (0)