From a6542a4b6870a019cd952d055d2e7af2da2fe102 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 25 Nov 2013 19:19:40 -0500 Subject: 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. --- doc/src/sgml/ref/abort.sgml | 3 +-- doc/src/sgml/ref/rollback.sgml | 4 ++-- doc/src/sgml/ref/set.sgml | 5 ++--- doc/src/sgml/ref/set_constraints.sgml | 5 +---- doc/src/sgml/ref/set_transaction.sgml | 2 +- 5 files changed, 7 insertions(+), 12 deletions(-) (limited to 'doc/src') 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 ] - Issuing ABORT when not inside a transaction does - no harm, but it will provoke a warning message. + Issuing ABORT outside of a transaction block has no effect. 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 ] - Issuing ROLLBACK when not inside a transaction does - no harm, but it will provoke a warning message. + Issuing ROLLBACK outside of a transaction + block has no effect. 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 { timezone Specifies that the command takes effect for only the current transaction. After COMMIT or ROLLBACK, - the session-level setting takes effect again. - PostgreSQL reports an error if - SET LOCAL is used outside a transaction block. + the session-level setting takes effect again. This has no effect + outside of a transaction block. 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 | name [, ... This command only alters the behavior of constraints within the - current transaction. Thus, if you execute this command outside of a - transaction block - (BEGIN/COMMIT pair), it will - generate an error. + current transaction. This has no effect outside of a transaction block. 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 transa If SET TRANSACTION is executed without a prior START TRANSACTION or BEGIN, - it will generate an error. + it will have no effect. -- cgit v1.2.3