]> granicus.if.org Git - postgresql/commitdiff
Update SET commands for psql \h, man pages, and sgml.
authorBruce Momjian <bruce@momjian.us>
Thu, 3 Jun 1999 18:18:43 +0000 (18:18 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 3 Jun 1999 18:18:43 +0000 (18:18 +0000)
doc/src/sgml/ref/set.sgml
src/bin/psql/psqlHelp.h
src/man/set.l

index 12c9e47fcc56a964139e9efb87b10561a3631ac4..f4e7374e11e06928dbdeff769ce5127a6fff0c2a 100644 (file)
@@ -526,7 +526,49 @@ SET TIME ZONE { '<REPLACEABLE CLASS="PARAMETER">timezone</REPLACEABLE>' | LOCAL
       </listitem>
      </varlistentry>
     </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>
+        
+        <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 ID="R2-SQL-SET-2">
index 8e7dac94772851fd146c5c7632ba508de5ee096c..6f37421340ef4c739f036d57c06481798b09d6c8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * 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\""},
        {"reset",
                "set run-time environment back to default",
-#ifdef MULTIBYTE
        "\
-\tRESET DateStyle|GEQO|R_PLANS|QUERY_LIMIT|CLIENT_ENCODING"},
-#else
-       "\
-\tRESET DateStyle|GEQO|R_PLANS|QUERY_LIMIT"},
-#endif
+\tRESET DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|QUERY_LIMIT|\n\
+TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
        {"revoke",
                "revoke access control from a user or group",
        "\
@@ -324,29 +320,22 @@ static struct _helpStruct QL_HELP[] = {
 \t[ { UNION [ALL] | INTERSECT | EXCEPT } SELECT ...];"},
        {"set",
                "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 R_PLANS TO 'ON'|'OFF'\n\
+set KSQO TO 'ON'|'OFF'\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'"},
-#else
-       "\
-\tSET DateStyle TO 'ISO'|'SQL'|'Postgres'|'European'|'US'|'NonEuropean'\n\
-set GEQO TO 'ON[=#]'|'OFF'\n\
-set R_PLANS TO 'ON'| 'OFF'\n\
-set QUERY_LIMIT TO #"},
-#endif
+set TIMEZONE TO 'value'\n\
+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\
+set SERVER_ENCODING TO 'EUC_JP'|'SJIS'|'EUC_CN'|'EUC_KR'|'EUC_TW'|'BIG5'|'MULE_INTERNAL'|'LATIN1'|'LATIN2'|'LATIN3'|'LATIN4'|'LATIN5'|'KOI8|'WIN'|'ALT'"},
        {"show",
                "show current run-time environment",
-#ifdef MULTIBYTE
-       "\
-\tSHOW DateStyle|GEQO|R_PLANS|QUERY_LIMIT|CLIENT_ENCODING"},
-#else
        "\
-\tSHOW DateStyle|GEQO|R_PLANS|QUERY_LIMIT"},
-#endif
+\tSHOW DATESTYLE|COST_HEAP|COST_INDEX|GEQO|KSQO|QUERY_LIMIT|\n\
+TIMEZONE|XACTISOLEVEL|CLIENT_ENCODING|SERVER_ENCODING"},
        {"unlisten",
                "stop listening for notification on a condition name",
        "\
index 38e644faa33e835c2b50710d3d71af02263cfdc5..8a3e060797bd3052cd01a136218742cb613752b5 100644 (file)
@@ -1,6 +1,6 @@
 .\" This is -*-nroff-*-
 .\" 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
 .SH NAME
 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
 is enclosed in single-quotes.
 .PP
-.IR DateStyle
+.IR DATESTYLE
 determines the output format for the date and time data types.
 
 .ce 1
@@ -40,6 +40,13 @@ determines the output format for the date and time data types.
        US      - same as 'NonEuropean'
        default - restores the default values ('US,Postgres')
 .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
 .IR GEQO
 enables or disables the genetic optimizer algorithm. This algorithm is
@@ -61,9 +68,32 @@ for more information.
        off     - do not use the genetic optimizer
 .fi
 .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
 restricts the number of rows returned by a query.
 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
@@ -94,5 +124,3 @@ set GEQO to 'off'
 .SH "SEE ALSO"
 reset(l),
 show(l).
-.SH BUGS
-Of course.