aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-13 16:55:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-13 16:55:05 +0000
commitad4ce7aa5b7385a0481009d1b8d8774435b03b0d (patch)
tree0f0baebe82b0ec25b03cf51647bea1abe60bd70b /doc/src
parent5261bf9733f4f18f846e32ad968ae78696ce6319 (diff)
downloadpostgresql-ad4ce7aa5b7385a0481009d1b8d8774435b03b0d.tar.gz
postgresql-ad4ce7aa5b7385a0481009d1b8d8774435b03b0d.zip
Make SET really not start a transaction.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/reset.sgml4
-rw-r--r--doc/src/sgml/ref/set.sgml7
-rw-r--r--doc/src/sgml/ref/show.sgml9
-rw-r--r--doc/src/sgml/runtime.sgml16
4 files changed, 22 insertions, 14 deletions
diff --git a/doc/src/sgml/ref/reset.sgml b/doc/src/sgml/ref/reset.sgml
index a21aa0239fb..ed36d549c52 100644
--- a/doc/src/sgml/ref/reset.sgml
+++ b/doc/src/sgml/ref/reset.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/reset.sgml,v 1.16 2002/10/09 04:59:38 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/reset.sgml,v 1.17 2002/10/13 16:55:05 tgl Exp $
PostgreSQL documentation
-->
@@ -68,7 +68,7 @@ SET <replaceable class="parameter">variable</replaceable> TO DEFAULT
</para>
<para>
- See the <command>SHOW</> manual page for details on the transaction
+ See the <command>SET</> manual page for details on the transaction
behavior of <command>RESET</>.
</para>
diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml
index 4ee941be37b..71e35b50a5e 100644
--- a/doc/src/sgml/ref/set.sgml
+++ b/doc/src/sgml/ref/set.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.67 2002/10/09 16:27:48 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/set.sgml,v 1.68 2002/10/13 16:55:05 tgl Exp $
PostgreSQL documentation
-->
@@ -109,9 +109,10 @@ SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="PARAMETER">timezone</rep
</para>
<para>
- With <literal>autocommit</> set to <literal>off</>, <command>SET</>
+ Even with <literal>autocommit</> set to <literal>off</>, <command>SET</>
does not start a new transaction block. See the
- <literal>autocommit</> section of the documentation for details.
+ <literal>autocommit</> section of the <citetitle>Administrator's
+ Guide</citetitle> for details.
</para>
<para>
diff --git a/doc/src/sgml/ref/show.sgml b/doc/src/sgml/ref/show.sgml
index f42893ffb25..2f086ee8a2d 100644
--- a/doc/src/sgml/ref/show.sgml
+++ b/doc/src/sgml/ref/show.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/show.sgml,v 1.21 2002/09/01 01:59:48 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/show.sgml,v 1.22 2002/10/13 16:55:05 tgl Exp $
PostgreSQL documentation
-->
@@ -60,6 +60,13 @@ SHOW ALL
command-line flag when starting the
<application>postmaster</application>.
</para>
+
+ <para>
+ Even with <literal>autocommit</> set to <literal>off</>, <command>SHOW</>
+ does not start a new transaction block. See the
+ <literal>autocommit</> section of the <citetitle>Administrator's
+ Guide</citetitle> for details.
+ </para>
</refsect1>
<refsect1>
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 2936e9b4c70..fc878e678c5 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.144 2002/10/09 04:59:38 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.145 2002/10/13 16:55:05 tgl Exp $
-->
<Chapter Id="runtime">
@@ -1236,7 +1236,7 @@ env PGOPTIONS='-c geqo=off' psql
<command>BEGIN</> with no matching <command>COMMIT</> has been
given).
If set to false, <productname>PostgreSQL</productname> will
- commit the commands only when receiving an explicit
+ commit only upon receiving an explicit
<command>COMMIT</> command. This mode can also be thought of as
implicitly issuing <command>BEGIN</> whenever a command is
received that is not already inside a transaction block. The
@@ -1247,16 +1247,16 @@ env PGOPTIONS='-c geqo=off' psql
</para>
<note>
<para>
- With <varname>autocommit</> set to false, <command>SET</>,
+ Even with <varname>autocommit</> set to false, <command>SET</>,
<command>SHOW</>, and <command>RESET</> do not start new
transaction blocks. They are run in their own transactions.
- Once another command is issued, multi-statement transaction
- behavior begins and any <command>SET</>, <command>SHOW</>, or
+ Once another command is issued, a transaction block
+ begins and any <command>SET</>, <command>SHOW</>, or
<command>RESET</> commands are considered to be part of the
transaction, i.e. they are committed or rolled back depending
- on the completion status of the transaction. To have
- <command>SET</>, <command>SHOW</>, and <command>RESET</>
- commands at the start of a transaction, use <command>BEGIN</>
+ on the completion status of the transaction. To execute a
+ <command>SET</>, <command>SHOW</>, or <command>RESET</>
+ command at the start of a transaction block, use <command>BEGIN</>
first.
</para>
</note>