From ad4ce7aa5b7385a0481009d1b8d8774435b03b0d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 13 Oct 2002 16:55:05 +0000 Subject: Make SET really not start a transaction. --- doc/src/sgml/ref/reset.sgml | 4 ++-- doc/src/sgml/ref/set.sgml | 7 ++++--- doc/src/sgml/ref/show.sgml | 9 ++++++++- doc/src/sgml/runtime.sgml | 16 ++++++++-------- 4 files changed, 22 insertions(+), 14 deletions(-) (limited to 'doc/src') 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 @@ @@ -68,7 +68,7 @@ SET variable TO DEFAULT - See the SHOW manual page for details on the transaction + See the SET manual page for details on the transaction behavior of RESET. 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 @@ @@ -109,9 +109,10 @@ SET [ SESSION | LOCAL ] TIME ZONE { timezone - With autocommit set to off, SET + Even with autocommit set to off, SET does not start a new transaction block. See the - autocommit section of the documentation for details. + autocommit section of the Administrator's + Guide for details. 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 @@ @@ -60,6 +60,13 @@ SHOW ALL command-line flag when starting the postmaster. + + + Even with autocommit set to off, SHOW + does not start a new transaction block. See the + autocommit section of the Administrator's + Guide for details. + 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 @@ @@ -1236,7 +1236,7 @@ env PGOPTIONS='-c geqo=off' psql BEGIN with no matching COMMIT has been given). If set to false, PostgreSQL will - commit the commands only when receiving an explicit + commit only upon receiving an explicit COMMIT command. This mode can also be thought of as implicitly issuing 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 - With autocommit set to false, SET, + Even with autocommit set to false, SET, SHOW, and 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 SET, SHOW, or + Once another command is issued, a transaction block + begins and any SET, SHOW, or 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 - SET, SHOW, and RESET - commands at the start of a transaction, use BEGIN + on the completion status of the transaction. To execute a + SET, SHOW, or RESET + command at the start of a transaction block, use BEGIN first. -- cgit v1.2.3