@@ -26,12 +26,13 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
...
@@ -26,12 +26,13 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
<REFSECT2 ID="R2-SQL-SET-1">
<REFSECT2 ID="R2-SQL-SET-1">
<REFSECT2INFO>
<REFSECT2INFO>
<DATE>1998-08-31</DATE>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
</REFSECT2INFO>
<TITLE>
<TITLE>
Inputs
Inputs
</TITLE>
</TITLE>
<PARA>
<PARA>
<VARIABLELIST>
<VARIABLELIST>
<VARLISTENTRY>
<VARLISTENTRY>
<TERM>
<TERM>
...
@@ -210,7 +211,8 @@ set time zone to your local timezone
...
@@ -210,7 +211,8 @@ set time zone to your local timezone
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
There are also several internal or optimization parameters which can be specified
There are also several internal or optimization
parameters which can be specified
by the <command>SET</command> command:
by the <command>SET</command> command:
<variablelist>
<variablelist>
...
@@ -293,12 +295,13 @@ enables the genetic optimizer algorithm
...
@@ -293,12 +295,13 @@ enables the genetic optimizer algorithm
for statements with 8 or more tables.
for statements with 8 or more tables.
<varlistentry>
<varlistentry>
<term>
<term>
On=#
On=<replaceable class="parameter">#</replaceable>
</term>
</term>
<listitem>
<listitem>
<para>
<para>
enables the genetic optimizer algorithm
Takes an integer argument to enable the genetic optimizer algorithm
for statements with # or more tables.
for statements with <replaceable class="parameter">#</replaceable>
or more tables in the query.
<varlistentry>
<varlistentry>
<term>
<term>
Off
Off
...
@@ -418,17 +421,25 @@ Equivalent to specifying <command>SET R_PLANS=Off</command>.
...
@@ -418,17 +421,25 @@ Equivalent to specifying <command>SET R_PLANS=Off</command>.
<REFSECT2 ID="R2-SQL-SET-2">
<REFSECT2 ID="R2-SQL-SET-2">
<REFSECT2INFO>
<REFSECT2INFO>
<DATE>1998-08-31</DATE>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
</REFSECT2INFO>
<TITLE>
<TITLE>
Outputs
Outputs
</TITLE>
</TITLE>
<PARA>
<PARA>
</PARA>
<VARIABLELIST>
<VARLISTENTRY>
<TERM>
<replaceable>status</replaceable>
</TERM>
<LISTITEM>
<PARA>
<VARIABLELIST>
<VARIABLELIST>
<VARLISTENTRY>
<VARLISTENTRY>
<TERM>
<TERM>
SET VARIABLE
<returnvalue>SET VARIABLE</returnvalue>
</TERM>
</TERM>
<LISTITEM>
<LISTITEM>
<PARA>
<PARA>
...
@@ -436,44 +447,46 @@ Outputs
...
@@ -436,44 +447,46 @@ Outputs
<VARLISTENTRY>
<VARLISTENTRY>
<TERM>
<TERM>
WARN: Bad value for <replaceable class="parameter">variable</replaceable> (<replaceable class="parameter">value</replaceable>)
<returnvalue>WARN: Bad value for <replaceable class="parameter">variable</replaceable> (<replaceable class="parameter">value</replaceable>)</returnvalue>
</TERM>
</TERM>
<LISTITEM>
<LISTITEM>
<PARA>
<PARA>
If fails to set variable.
If the command fails to set variable.
</VARLISTENTRY>
</VARLISTENTRY>
</VARIABLELIST>
</VARIABLELIST>
</VARIABLELIST>
</REFSECT2>
</REFSECT2>
</REFSYNOPSISDIV>
</REFSYNOPSISDIV>
<REFSECT1 ID="R1-SQL-SET-1">
<REFSECT1 ID="R1-SQL-SET-1">
<REFSECT1INFO>
<REFSECT1INFO>
<DATE>1998-08-31</DATE>
<DATE>1998-09-24</DATE>
</REFSECT1INFO>
</REFSECT1INFO>
<TITLE>
<TITLE>
Description
Description
</TITLE>
</TITLE>
<PARA>
<PARA>
SET will modify configuration parameters for variable during
<command>SET</command> will modify configuration parameters for variable during
a session.
a session.
<para>
<para>
Current values can be obtained using SHOW statement, and values
Current values can be obtained using <command>SHOW</command>, and values
can be restored to the defaults using RESET statement.
can be restored to the defaults using <command>RESET</command>.
Parameters and values are case-insensitive. Note that the value
Parameters and values are case-insensitive. Note that the value
field is always specified as a string, so is enclosed in
field is always specified as a string, so is enclosed in
single-quotes.
single-quotes.
<para>
<para>
SET TIME ZONE changes the session's default time zone offset.
<command>SET TIME ZONE</command> changes the session's
default time zone offset.
A SQL-session always begins with an initial default time zone
A SQL-session always begins with an initial default time zone
offset.
offset.
The SET TIME ZONE statement is used to change the default
The <command>SET TIME ZONE</command> statement is used to change the default
time zone offset for the current SQL session.
time zone offset for the current SQL session.
<REFSECT2 ID="R2-SQL-SET-3">
<REFSECT2 ID="R2-SQL-SET-3">
<REFSECT2INFO>
<REFSECT2INFO>
<DATE>1998-08-31</DATE>
<DATE>1998-09-24</DATE>
</REFSECT2INFO>
</REFSECT2INFO>
<TITLE>
<TITLE>
Notes
Notes
...
@@ -483,7 +496,8 @@ The <command>SET <replaceable class="parameter">variable</replaceable></command>
...
@@ -483,7 +496,8 @@ The <command>SET <replaceable class="parameter">variable</replaceable></command>
statement is a <productname>Postgres</productname> language extension.
statement is a <productname>Postgres</productname> language extension.
<para>
<para>
Refer to SHOW/RESET statements to show/reset variable values.
Refer to <command>SHOW</command> and <command>RESET</command> to