Skip to content

Commit faba108

Browse files
committed
Document the DEFERRABLE option in SET TRANSACTION command.
Kevin Grittner
1 parent 97e3dac commit faba108

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/src/sgml/ref/set_transaction.sgml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@ SET SESSION CHARACTERISTICS AS TRANSACTION <replaceable class="parameter">transa
135135
among those listed. This is a high-level notion of read-only that
136136
does not prevent all writes to disk.
137137
</para>
138+
139+
<para>
140+
The <literal>DEFERRABLE</literal> transaction property has no effect
141+
unless the transaction is also <literal>SERIALIZABLE</literal> and
142+
<literal>READ ONLY</literal>. When all of these properties are set on a
143+
transaction, the transaction may block when first acquiring its snapshot,
144+
after which it is able to run without the normal overhead of a
145+
<literal>SERIALIZABLE</literal> transaction and without any risk of
146+
contributing to or being cancelled by a serialization failure. This mode
147+
is well suited for long-running reports or backups.
148+
</para>
138149
</refsect1>
139150

140151
<refsect1>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy