Skip to content

Commit 54916b9

Browse files
committed
doc: update wording of ineffective SET and ABORT commands
Wording by Alvaro Herrera
1 parent b8b7b72 commit 54916b9

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

doc/src/sgml/ref/abort.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ ABORT [ WORK | TRANSACTION ]
6363
</para>
6464

6565
<para>
66-
Issuing <command>ABORT</> outside of a transaction block has no effect.
66+
Issuing <command>ABORT</> outside of a transaction block
67+
emits a warning and otherwise has no effect.
6768
</para>
6869
</refsect1>
6970

doc/src/sgml/ref/rollback.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ROLLBACK [ WORK | TRANSACTION ]
6060

6161
<para>
6262
Issuing <command>ROLLBACK</> outside of a transaction
63-
block has no effect.
63+
block emits a warning and otherwise has no effect.
6464
</para>
6565
</refsect1>
6666

doc/src/sgml/ref/set.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="PARAMETER">timezone</rep
110110
<para>
111111
Specifies that the command takes effect for only the current
112112
transaction. After <command>COMMIT</> or <command>ROLLBACK</>,
113-
the session-level setting takes effect again. This has no effect
114-
outside of a transaction block.
113+
the session-level setting takes effect again. Issuing this
114+
outside of a transaction block emits a warning and otherwise has
115+
no effect.
115116
</para>
116117
</listitem>
117118
</varlistentry>

doc/src/sgml/ref/set_constraints.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ SET CONSTRAINTS { ALL | <replaceable class="parameter">name</replaceable> [, ...
9999

100100
<para>
101101
This command only alters the behavior of constraints within the
102-
current transaction. This has no effect outside of a transaction block.
102+
current transaction. Issuing this outside of a transaction block
103+
emits a warning and otherwise has no effect.
103104
</para>
104105
</refsect1>
105106

doc/src/sgml/ref/set_transaction.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ SET SESSION CHARACTERISTICS AS TRANSACTION <replaceable class="parameter">transa
185185
<para>
186186
If <command>SET TRANSACTION</command> is executed without a prior
187187
<command>START TRANSACTION</command> or <command>BEGIN</command>,
188-
it will have no effect.
188+
it emits a warning and otherwise has no effect.
189189
</para>
190190

191191
<para>

0 commit comments

Comments
 (0)