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

Commita009cb3

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.comDiscussion:https://postgr.es/m/163888728952.1269.5167822676466793158@wrigleys.postgresql.orgBackpatch-through: 10
1 parent62c49fc commita009cb3

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)

[8]ページ先頭

©2009-2025 Movatter.jp