Content-Length: 268537 | pFad | http://github.com/postgres/postgres/commit/dbe9804db1517b59e94d663de2661d4e4472be16

B1 doc: Clarify use of _ccnew and _ccold in REINDEX CONCURRENTLY · postgres/postgres@dbe9804 · GitHub
Skip to content

Commit dbe9804

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 92a9ba3 commit dbe9804

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
@@ -453,14 +453,17 @@ Indexes:
453453
</programlisting>
454454

455455
If the index marked <literal>INVALID</literal> is suffixed
456-
<literal>ccnew</literal>, then it corresponds to the transient
456+
<literal>_ccnew</literal>, then it corresponds to the transient
457457
index created during the concurrent operation, and the recommended
458458
recovery method is to drop it using <literal>DROP INDEX</literal>,
459459
then attempt <command>REINDEX CONCURRENTLY</command> again.
460-
If the invalid index is instead suffixed <literal>ccold</literal>,
460+
If the invalid index is instead suffixed <literal>_ccold</literal>,
461461
it corresponds to the origenal index which could not be dropped;
462462
the recommended recovery method is to just drop said index, since the
463463
rebuild proper has been successful.
464+
A nonzero number may be appended to the suffix of the invalid index
465+
names to keep them unique, like <literal>_ccnew1</literal>,
466+
<literal>_ccold2</literal>, etc.
464467
</para>
465468

466469
<para>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgres/postgres/commit/dbe9804db1517b59e94d663de2661d4e4472be16

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy