Fix some markup, but probably not finished yet...
This commit is contained in:
parent
a4ac2f458e
commit
1e723ff015
|
@ -18,9 +18,8 @@
|
||||||
<date>1998-09-24</date>
|
<date>1998-09-24</date>
|
||||||
</refsynopsisdivinfo>
|
</refsynopsisdivinfo>
|
||||||
<synopsis>
|
<synopsis>
|
||||||
SET <replaceable class="PARAMETER">variable</replaceable> { TO | = } {
|
SET <replaceable class="PARAMETER">variable</replaceable> { TO | = } { '<replaceable class="PARAMETER">value</replaceable>' | DEFAULT }
|
||||||
'<replaceable class="PARAMETER">value</replaceable>' | DEFAULT }
|
SET TIME ZONE { '<replaceable class="PARAMETER">timezone</replaceable>' | LOCAL | DEFAULT }
|
||||||
SET TIME ZONE { '<replaceable class="PARAMETER">timezone</replaceable>' | LOCAL | DEFAULT };
|
|
||||||
SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
</synopsis>
|
</synopsis>
|
||||||
|
|
||||||
|
@ -67,7 +66,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Sets the multi-byte client encoding
|
Sets the multi-byte client encoding. Parameters are:
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
@ -89,7 +88,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Sets the multi-byte client encoding.
|
Sets the multi-byte client encoding to the default value.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -108,6 +107,9 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
|
Set the date/time representation style. Affects the output format,
|
||||||
|
and in some cases it can affect the interpretation of input.
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
|
@ -193,14 +195,14 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Date format initialization my be done by:
|
Date format initialization may be done by:
|
||||||
<simplelist>
|
<simplelist>
|
||||||
<member>
|
<member>
|
||||||
Setting PGDATESTYLE environment variable.
|
Setting the <envar>PGDATESTYLE</envar> environment variable.
|
||||||
</member>
|
</member>
|
||||||
<member>
|
<member>
|
||||||
Running postmaster using -oe parameter to set
|
Running postmaster using the <option>-oe</option> parameter to set
|
||||||
dates to the 'European' convention.
|
dates to the <literal>European</literal> convention.
|
||||||
Note that this affects only the some combinations of date styles; for example
|
Note that this affects only the some combinations of date styles; for example
|
||||||
the ISO style is not affected by this parameter.
|
the ISO style is not affected by this parameter.
|
||||||
</member>
|
</member>
|
||||||
|
@ -628,9 +630,7 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<returnvalue>WARN: Bad value for
|
<returnvalue>WARN: Bad value for <replaceable class="parameter">variable</replaceable> (<replaceable class="parameter">value</replaceable>)</returnvalue>
|
||||||
<replaceable class="parameter">variable</replaceable>
|
|
||||||
(<replaceable class="parameter">value</replaceable>)</returnvalue>
|
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
|
@ -694,43 +694,46 @@ SET TRANSACTION ISOLATION LEVEL { READ COMMITTED | SERIALIZED }
|
||||||
Usage
|
Usage
|
||||||
</title>
|
</title>
|
||||||
<para>
|
<para>
|
||||||
</para>
|
Set the style of date to ISO:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
--Set the style of date to ISO:
|
|
||||||
--
|
|
||||||
SET DATESTYLE TO 'ISO';
|
SET DATESTYLE TO 'ISO';
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
|
Enable GEQO for queries with 4 or more tables:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
--Enable GEQO for queries with 4 or more tables
|
|
||||||
--
|
|
||||||
SET GEQO ON=4;
|
SET GEQO ON=4;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
|
Set GEQO to default:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
--Set GEQO to default:
|
|
||||||
--
|
|
||||||
SET GEQO = DEFAULT;
|
SET GEQO = DEFAULT;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<programlisting>
|
|
||||||
--set the timezone for Berkeley, California:
|
|
||||||
SET TIME ZONE 'PST8PDT';
|
|
||||||
|
|
||||||
|
Set the timezone for Berkeley, California:
|
||||||
|
|
||||||
|
<programlisting>
|
||||||
|
SET TIME ZONE 'PST8PDT';
|
||||||
SELECT CURRENT_TIMESTAMP AS today;
|
SELECT CURRENT_TIMESTAMP AS today;
|
||||||
|
|
||||||
today
|
today
|
||||||
----------------------
|
----------------------
|
||||||
1998-03-31 07:41:21-08
|
1998-03-31 07:41:21-08
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<programlisting>
|
|
||||||
--set the timezone for Italy:
|
|
||||||
SET TIME ZONE 'Europe/Rome';
|
|
||||||
|
|
||||||
|
Set the timezone for Italy:
|
||||||
|
|
||||||
|
<programlisting>
|
||||||
|
SET TIME ZONE 'Europe/Rome';
|
||||||
SELECT CURRENT_TIMESTAMP AS today;
|
SELECT CURRENT_TIMESTAMP AS today;
|
||||||
|
|
||||||
today
|
today
|
||||||
----------------------
|
----------------------
|
||||||
1998-03-31 17:41:31+02
|
1998-03-31 17:41:31+02
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
<refsect1 id="R1-SQL-SET-3">
|
<refsect1 id="R1-SQL-SET-3">
|
||||||
|
|
Loading…
Reference in New Issue