Update SET commands for psql \h, man pages, and sgml.
This commit is contained in:
parent
ee5764beff
commit
fa0ed6f047
|
@ -526,7 +526,49 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
XACTISOLEVEL
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Sets the isolation level for transactions.
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<replaceable class="parameter">value</replaceable>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Sets the isolation level for transactions to
|
||||||
|
'SERIALIZABLE' or 'COMMITTED'.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
DEFAULT
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Sets the cost of a heap scan to the default value.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
The frontend may be initialized by setting the PGCOSTHEAP
|
||||||
|
environment variable.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</REFSECT2>
|
</REFSECT2>
|
||||||
|
|
||||||
<REFSECT2 ID="R2-SQL-SET-2">
|
<REFSECT2 ID="R2-SQL-SET-2">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: psqlHelp.h,v 1.63 1999/04/18 03:01:49 tgl Exp $
|
* $Id: psqlHelp.h,v 1.64 1999/06/03 18:18:42 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -294,13 +294,9 @@ static struct _helpStruct QL_HELP[] = {
|
||||||
\tNOTIFY name|\"non-name string\""},
|
\tNOTIFY name|\"non-name string\""},
|
||||||
{"reset",
|
{"reset",
|
||||||
"set run-time environment back to default",
|
"set run-time environment back to default",
|
||||||
#ifdef MULTIBYTE
|
|
||||||
"\
|
"\
|
||||||
\tRESET DateStyle|GEQO|R_PLANS|QUERY_LIMIT|CLIENT_ENCODING"},
|
\tRESET DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|QUERY_LIMIT|\n\
|
||||||
#else
|
TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
|
||||||
"\
|
|
||||||
\tRESET DateStyle|GEQO|R_PLANS|QUERY_LIMIT"},
|
|
||||||
#endif
|
|
||||||
{"revoke",
|
{"revoke",
|
||||||
"revoke access control from a user or group",
|
"revoke access control from a user or group",
|
||||||
"\
|
"\
|
||||||
|
@ -324,29 +320,22 @@ static struct _helpStruct QL_HELP[] = {
|
||||||
\t[ { UNION [ALL] | INTERSECT | EXCEPT } SELECT ...];"},
|
\t[ { UNION [ALL] | INTERSECT | EXCEPT } SELECT ...];"},
|
||||||
{"set",
|
{"set",
|
||||||
"set run-time environment",
|
"set run-time environment",
|
||||||
#ifdef MULTIBYTE
|
|
||||||
"\
|
"\
|
||||||
\tSET DateStyle TO 'ISO'|'SQL'|'Postgres'|'European'|'US'|'NonEuropean'\n\
|
\tSET DATESTYLE TO 'ISO'|'SQL'|'Postgres'|'European'|'US'|'NonEuropean'\n\
|
||||||
|
set COST_HEAP TO #\n\
|
||||||
|
set COST_INDEX TO #\n\
|
||||||
set GEQO TO 'ON[=#]'|'OFF'\n\
|
set GEQO TO 'ON[=#]'|'OFF'\n\
|
||||||
set R_PLANS TO 'ON'|'OFF'\n\
|
set KSQO TO 'ON'|'OFF'\n\
|
||||||
set QUERY_LIMIT TO #\n\
|
set QUERY_LIMIT TO #\n\
|
||||||
set CLIENT_ENCODING TO 'EUC_JP'|'SJIS'|'EUC_CN'|'EUC_KR'|'EUC_TW'|'BIG5'|'MULE_INTERNAL'|'LATIN1'|'LATIN2'|'LATIN3'|'LATIN4'|'LATIN5'|'KOI8|'WIN'|'ALT'"},
|
set TIMEZONE TO 'value'\n\
|
||||||
#else
|
set XACTISOLEVEL TO 'SERIALIZABLE'|'COMMITTED'\n\
|
||||||
"\
|
set CLIENT_ENCODING TO 'EUC_JP'|'SJIS'|'EUC_CN'|'EUC_KR'|'EUC_TW'|'BIG5'|'MULE_INTERNAL'|'LATIN1'|'LATIN2'|'LATIN3'|'LATIN4'|'LATIN5'|'KOI8|'WIN'|'ALT'\n\
|
||||||
\tSET DateStyle TO 'ISO'|'SQL'|'Postgres'|'European'|'US'|'NonEuropean'\n\
|
set SERVER_ENCODING TO 'EUC_JP'|'SJIS'|'EUC_CN'|'EUC_KR'|'EUC_TW'|'BIG5'|'MULE_INTERNAL'|'LATIN1'|'LATIN2'|'LATIN3'|'LATIN4'|'LATIN5'|'KOI8|'WIN'|'ALT'"},
|
||||||
set GEQO TO 'ON[=#]'|'OFF'\n\
|
|
||||||
set R_PLANS TO 'ON'| 'OFF'\n\
|
|
||||||
set QUERY_LIMIT TO #"},
|
|
||||||
#endif
|
|
||||||
{"show",
|
{"show",
|
||||||
"show current run-time environment",
|
"show current run-time environment",
|
||||||
#ifdef MULTIBYTE
|
|
||||||
"\
|
"\
|
||||||
\tSHOW DateStyle|GEQO|R_PLANS|QUERY_LIMIT|CLIENT_ENCODING"},
|
\tSHOW DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|QUERY_LIMIT|\n\
|
||||||
#else
|
TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
|
||||||
"\
|
|
||||||
\tSHOW DateStyle|GEQO|R_PLANS|QUERY_LIMIT"},
|
|
||||||
#endif
|
|
||||||
{"unlisten",
|
{"unlisten",
|
||||||
"stop listening for notification on a condition name",
|
"stop listening for notification on a condition name",
|
||||||
"\
|
"\
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
.\" This is -*-nroff-*-
|
.\" This is -*-nroff-*-
|
||||||
.\" XXX standard disclaimer belongs here....
|
.\" XXX standard disclaimer belongs here....
|
||||||
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.16 1999/03/07 12:00:40 momjian Exp $
|
.\" $Header: /cvsroot/pgsql/src/man/Attic/set.l,v 1.17 1999/06/03 18:18:43 momjian Exp $
|
||||||
.TH SET SQL 05/14/97 PostgreSQL PostgreSQL
|
.TH SET SQL 05/14/97 PostgreSQL PostgreSQL
|
||||||
.SH NAME
|
.SH NAME
|
||||||
set - set run-time parameters for session
|
set - set run-time parameters for session
|
||||||
|
@ -22,7 +22,7 @@ Parameters and values are case-insensitive.
|
||||||
Note that the value field is always specified as a string, so
|
Note that the value field is always specified as a string, so
|
||||||
is enclosed in single-quotes.
|
is enclosed in single-quotes.
|
||||||
.PP
|
.PP
|
||||||
.IR DateStyle
|
.IR DATESTYLE
|
||||||
determines the output format for the date and time data types.
|
determines the output format for the date and time data types.
|
||||||
|
|
||||||
.ce 1
|
.ce 1
|
||||||
|
@ -40,6 +40,13 @@ determines the output format for the date and time data types.
|
||||||
US - same as 'NonEuropean'
|
US - same as 'NonEuropean'
|
||||||
default - restores the default values ('US,Postgres')
|
default - restores the default values ('US,Postgres')
|
||||||
.fi
|
.fi
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.IR COST_HEAP
|
||||||
|
sets the cost uses for heap scans by the optimizer.
|
||||||
|
.PP
|
||||||
|
.IR COST_INDEX
|
||||||
|
sets the cost uses for index scans by the optimizer.
|
||||||
.PP
|
.PP
|
||||||
.IR GEQO
|
.IR GEQO
|
||||||
enables or disables the genetic optimizer algorithm. This algorithm is
|
enables or disables the genetic optimizer algorithm. This algorithm is
|
||||||
|
@ -61,9 +68,32 @@ for more information.
|
||||||
off - do not use the genetic optimizer
|
off - do not use the genetic optimizer
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
|
.IR KSQO
|
||||||
|
enables or disables a workaround for memory exhaustion in queries with many
|
||||||
|
.B OR
|
||||||
|
clauses.
|
||||||
|
The default is disabled.
|
||||||
|
.PP
|
||||||
.IR QUERY_LIMIT
|
.IR QUERY_LIMIT
|
||||||
restricts the number of rows returned by a query.
|
restricts the number of rows returned by a query.
|
||||||
The default is unlimited.
|
The default is unlimited.
|
||||||
|
.PP
|
||||||
|
.IR TIMEZONE
|
||||||
|
sets your timezone.
|
||||||
|
.PP
|
||||||
|
.IR XACTISOLEVEL
|
||||||
|
sets the transaction isolation level to
|
||||||
|
.IR SERIALIZABLE
|
||||||
|
or
|
||||||
|
.IR COMMITTED .
|
||||||
|
.PP
|
||||||
|
.IR CLIENT_ENCODING
|
||||||
|
sets the character set encoding of the client. Only available if multi-byte
|
||||||
|
is enabled at configure time.
|
||||||
|
.PP
|
||||||
|
.IR SERVER_ENCODING
|
||||||
|
sets the character set encoding of the server. Only available if multi-byte
|
||||||
|
is enabled at configure time.
|
||||||
|
|
||||||
|
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
|
@ -94,5 +124,3 @@ set GEQO to 'off'
|
||||||
.SH "SEE ALSO"
|
.SH "SEE ALSO"
|
||||||
reset(l),
|
reset(l),
|
||||||
show(l).
|
show(l).
|
||||||
.SH BUGS
|
|
||||||
Of course.
|
|
||||||
|
|
Loading…
Reference in New Issue