Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix TRUNCATE doc: ALTER SEQUENCE RESTART is now transactional.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 19 Oct 2020 16:02:25 +0000 (19:02 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 19 Oct 2020 16:03:02 +0000 (19:03 +0300)
ALTER SEQUENCE RESTART was made transactional in commit 3d79013b97.
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

doc/src/sgml/ref/truncate.sgml

index e9c8a03a6381cdb43509b40481b74598ed6ae52d..f3ad9fc660c5c968abe8939e4e34584b3a93b300 100644 (file)
@@ -157,8 +157,7 @@ TRUNCATE [ TABLE ] [ ONLY ] <replaceable class="PARAMETER">name</replaceable> [
    When <literal>RESTART IDENTITY</> is specified, the implied
    <command>ALTER SEQUENCE RESTART</> operations are also done
    transactionally; that is, they will be rolled back if the surrounding
-   transaction does not commit.  This is unlike the normal behavior of
-   <command>ALTER SEQUENCE RESTART</>.  Be aware that if any additional
+   transaction does not commit.  Be aware that if any additional
    sequence operations are done on the restarted sequences before the
    transaction rolls back, the effects of these operations on the sequences
    will be rolled back, but not their effects on <function>currval()</>;