Skip to content

Commit d348473

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 609fe21 commit d348473

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/src/sgml/ref/truncate.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ TRUNCATE [ TABLE ] [ ONLY ] <replaceable class="PARAMETER">name</replaceable> [
157157
When <literal>RESTART IDENTITY</> is specified, the implied
158158
<command>ALTER SEQUENCE RESTART</> operations are also done
159159
transactionally; that is, they will be rolled back if the surrounding
160-
transaction does not commit. This is unlike the normal behavior of
161-
<command>ALTER SEQUENCE RESTART</>. Be aware that if any additional
160+
transaction does not commit. Be aware that if any additional
162161
sequence operations are done on the restarted sequences before the
163162
transaction rolls back, the effects of these operations on the sequences
164163
will be rolled back, but not their effects on <function>currval()</>;

0 commit comments

Comments
 (0)