Skip to content

Commit f23d014

Browse files
committed
doc: Clarify use of _ccnew and _ccold in REINDEX CONCURRENTLY
Invalid indexes are suffixed with "_ccnew" or "_ccold". The documentation missed to mention the initial underscore. ChooseRelationName() may also append an extra number if indexes with a similar name already exist; let's add a note about that too. Author: Alec Cozens <acozens@pixelpower.com> Discussion: https://postgr.es/m/174733277404.1455388.11471370288789479593@wrigleys.postgresql.org Backpatch-through: 13
1 parent 7ee0091 commit f23d014

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/ref/reindex.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,17 @@ Indexes:
385385
</programlisting>
386386

387387
If the index marked <literal>INVALID</literal> is suffixed
388-
<literal>ccnew</literal>, then it corresponds to the transient
388+
<literal>_ccnew</literal>, then it corresponds to the transient
389389
index created during the concurrent operation, and the recommended
390390
recovery method is to drop it using <literal>DROP INDEX</literal>,
391391
then attempt <command>REINDEX CONCURRENTLY</command> again.
392-
If the invalid index is instead suffixed <literal>ccold</literal>,
392+
If the invalid index is instead suffixed <literal>_ccold</literal>,
393393
it corresponds to the original index which could not be dropped;
394394
the recommended recovery method is to just drop said index, since the
395395
rebuild proper has been successful.
396+
A nonzero number may be appended to the suffix of the invalid index
397+
names to keep them unique, like <literal>_ccnew1</literal>,
398+
<literal>_ccold2</literal>, etc.
396399
</para>
397400

398401
<para>

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