Skip to content

Commit a009cb3

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 62c49fc commit a009cb3

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

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

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy