diff options
author | Bruce Momjian <bruce@momjian.us> | 2013-11-25 19:19:40 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2013-11-25 19:19:40 -0500 |
commit | a6542a4b6870a019cd952d055d2e7af2da2fe102 (patch) | |
tree | a2b0c5daba153d704f31edfbf1e66834d4955627 /doc/src | |
parent | 05b476c2983a8d38bf6a0254553b4a0776896aa7 (diff) | |
download | postgresql-a6542a4b6870a019cd952d055d2e7af2da2fe102.tar.gz postgresql-a6542a4b6870a019cd952d055d2e7af2da2fe102.zip |
Change SET LOCAL/CONSTRAINTS/TRANSACTION and ABORT behavior
Change SET LOCAL/CONSTRAINTS/TRANSACTION behavior outside of a
transaction block from error (post-9.3) to warning. (Was nothing in <=
9.3.) Also change ABORT outside of a transaction block from notice to
warning.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/abort.sgml | 3 | ||||
-rw-r--r-- | doc/src/sgml/ref/rollback.sgml | 4 | ||||
-rw-r--r-- | doc/src/sgml/ref/set.sgml | 5 | ||||
-rw-r--r-- | doc/src/sgml/ref/set_constraints.sgml | 5 | ||||
-rw-r--r-- | doc/src/sgml/ref/set_transaction.sgml | 2 |
5 files changed, 7 insertions, 12 deletions
diff --git a/doc/src/sgml/ref/abort.sgml b/doc/src/sgml/ref/abort.sgml index 246e8f81268..f3a2fa88ff1 100644 --- a/doc/src/sgml/ref/abort.sgml +++ b/doc/src/sgml/ref/abort.sgml @@ -63,8 +63,7 @@ ABORT [ WORK | TRANSACTION ] </para> <para> - Issuing <command>ABORT</> when not inside a transaction does - no harm, but it will provoke a warning message. + Issuing <command>ABORT</> outside of a transaction block has no effect. </para> </refsect1> diff --git a/doc/src/sgml/ref/rollback.sgml b/doc/src/sgml/ref/rollback.sgml index b26554567db..4f7962117c8 100644 --- a/doc/src/sgml/ref/rollback.sgml +++ b/doc/src/sgml/ref/rollback.sgml @@ -59,8 +59,8 @@ ROLLBACK [ WORK | TRANSACTION ] </para> <para> - Issuing <command>ROLLBACK</> when not inside a transaction does - no harm, but it will provoke a warning message. + Issuing <command>ROLLBACK</> outside of a transaction + block has no effect. </para> </refsect1> diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml index 6290c9de708..5a84f697e67 100644 --- a/doc/src/sgml/ref/set.sgml +++ b/doc/src/sgml/ref/set.sgml @@ -110,9 +110,8 @@ SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="PARAMETER">timezone</rep <para> Specifies that the command takes effect for only the current transaction. After <command>COMMIT</> or <command>ROLLBACK</>, - the session-level setting takes effect again. - <productname>PostgreSQL</productname> reports an error if - <command>SET LOCAL</> is used outside a transaction block. + the session-level setting takes effect again. This has no effect + outside of a transaction block. </para> </listitem> </varlistentry> diff --git a/doc/src/sgml/ref/set_constraints.sgml b/doc/src/sgml/ref/set_constraints.sgml index 895a5fdbc0e..a33190cca81 100644 --- a/doc/src/sgml/ref/set_constraints.sgml +++ b/doc/src/sgml/ref/set_constraints.sgml @@ -99,10 +99,7 @@ SET CONSTRAINTS { ALL | <replaceable class="parameter">name</replaceable> [, ... <para> This command only alters the behavior of constraints within the - current transaction. Thus, if you execute this command outside of a - transaction block - (<command>BEGIN</command>/<command>COMMIT</command> pair), it will - generate an error. + current transaction. This has no effect outside of a transaction block. </para> </refsect1> diff --git a/doc/src/sgml/ref/set_transaction.sgml b/doc/src/sgml/ref/set_transaction.sgml index 391464ade83..e90ff4af725 100644 --- a/doc/src/sgml/ref/set_transaction.sgml +++ b/doc/src/sgml/ref/set_transaction.sgml @@ -185,7 +185,7 @@ SET SESSION CHARACTERISTICS AS TRANSACTION <replaceable class="parameter">transa <para> If <command>SET TRANSACTION</command> is executed without a prior <command>START TRANSACTION</command> or <command>BEGIN</command>, - it will generate an error. + it will have no effect. </para> <para> |