Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2a972e0

Browse files
committed
Fix TRUNCATE doc: ALTER SEQUENCE RESTART is now transactional.
ALTER SEQUENCE RESTART was made transactional in commit 3d79013. Backpatch to v10, where that was introduced. Patch by Justin Pryzby, per Yaroslav Schekin's report. Discussion: https://www.postgresql.org/message-id/20201005191922.GE17626%40telsasoft.com
1 parent c0bc4c6 commit 2a972e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/src/sgml/ref/truncate.sgml

+1-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ TRUNCATE [ TABLE ] [ ONLY ] <replaceable class="parameter">name</replaceable> [
160160
When <literal>RESTART IDENTITY</literal> is specified, the implied
161161
<command>ALTER SEQUENCE RESTART</command> operations are also done
162162
transactionally; that is, they will be rolled back if the surrounding
163-
transaction does not commit. This is unlike the normal behavior of
164-
<command>ALTER SEQUENCE RESTART</command>. Be aware that if any additional
163+
transaction does not commit. Be aware that if any additional
165164
sequence operations are done on the restarted sequences before the
166165
transaction rolls back, the effects of these operations on the sequences
167166
will be rolled back, but not their effects on <function>currval()</function>;

0 commit comments

Comments
 (0)