File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,14 @@ ALTER SEQUENCE [ IF EXISTS ] <replaceable class="parameter">name</replaceable> S
180
180
the start value that was recorded by <command>CREATE SEQUENCE</>
181
181
or last set by <command>ALTER SEQUENCE START WITH</>.
182
182
</para>
183
+
184
+ <para>
185
+ Like a <function>setval</function> call, a <literal>RESTART</literal>
186
+ operation on a sequence is never rolled back, to avoid blocking of
187
+ concurrent transactions that obtain numbers from the same sequence.
188
+ (The other clauses cause ordinary catalog updates that can be rolled
189
+ back.)
190
+ </para>
183
191
</listitem>
184
192
</varlistentry>
185
193
@@ -281,15 +289,6 @@ ALTER SEQUENCE [ IF EXISTS ] <replaceable class="parameter">name</replaceable> S
281
289
<refsect1>
282
290
<title>Notes</title>
283
291
284
- <para>
285
- To avoid blocking of concurrent transactions that obtain numbers from the
286
- same sequence, <command>ALTER SEQUENCE</command>'s effects on the sequence
287
- generation parameters are never rolled back; those changes take effect
288
- immediately and are not reversible. However, the <literal>OWNED BY</>,
289
- <literal>OWNER TO</>, <literal>RENAME TO</>, and <literal>SET SCHEMA</>
290
- clauses cause ordinary catalog updates that can be rolled back.
291
- </para>
292
-
293
292
<para>
294
293
<command>ALTER SEQUENCE</command> will not immediately affect
295
294
<function>nextval</> results in backends,
You can’t perform that action at this time.
0 commit comments