mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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
This commit is contained in:
		@@ -22,7 +22,7 @@ PostgreSQL documentation
 | 
				
			|||||||
 <refsynopsisdiv>
 | 
					 <refsynopsisdiv>
 | 
				
			||||||
<synopsis>
 | 
					<synopsis>
 | 
				
			||||||
SET [ SESSION | LOCAL ] <replaceable class="parameter">configuration_parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | DEFAULT }
 | 
					SET [ SESSION | LOCAL ] <replaceable class="parameter">configuration_parameter</replaceable> { TO | = } { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | DEFAULT }
 | 
				
			||||||
SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="parameter">timezone</replaceable> | LOCAL | DEFAULT }
 | 
					SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="parameter">value</replaceable> | '<replaceable class="parameter">value</replaceable>' | LOCAL | DEFAULT }
 | 
				
			||||||
</synopsis>
 | 
					</synopsis>
 | 
				
			||||||
 </refsynopsisdiv>
 | 
					 </refsynopsisdiv>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -191,8 +191,8 @@ SELECT setseed(<replaceable>value</replaceable>);
 | 
				
			|||||||
    <varlistentry>
 | 
					    <varlistentry>
 | 
				
			||||||
     <term><literal>TIME ZONE</literal></term>
 | 
					     <term><literal>TIME ZONE</literal></term>
 | 
				
			||||||
     <listitem>
 | 
					     <listitem>
 | 
				
			||||||
      <para><literal>SET TIME ZONE <replaceable>value</replaceable></literal> is an alias
 | 
					      <para><literal>SET TIME ZONE '<replaceable>value</replaceable>'</literal> is an alias
 | 
				
			||||||
       for <literal>SET timezone TO <replaceable>value</replaceable></literal>.  The
 | 
					       for <literal>SET timezone TO '<replaceable>value</replaceable>'</literal>.  The
 | 
				
			||||||
       syntax <literal>SET TIME ZONE</literal> allows special syntax
 | 
					       syntax <literal>SET TIME ZONE</literal> allows special syntax
 | 
				
			||||||
       for the time zone specification.  Here are examples of valid
 | 
					       for the time zone specification.  Here are examples of valid
 | 
				
			||||||
       values:
 | 
					       values:
 | 
				
			||||||
@@ -253,7 +253,8 @@ SELECT setseed(<replaceable>value</replaceable>);
 | 
				
			|||||||
      </para>
 | 
					      </para>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      <para>
 | 
					      <para>
 | 
				
			||||||
       See <xref linkend="datatype-timezones"/> for more information
 | 
					       Time zone abbreviations are not supported by <command>SET</command>;
 | 
				
			||||||
 | 
					       see <xref linkend="datatype-timezones"/> for more information
 | 
				
			||||||
       about time zones.
 | 
					       about time zones.
 | 
				
			||||||
      </para>
 | 
					      </para>
 | 
				
			||||||
     </listitem>
 | 
					     </listitem>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user