INVALID index while concurrent indexing in progress?

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: dancernerd32(at)gmail(dot)com
Subject: INVALID index while concurrent indexing in progress?
Date: 2022-05-18 19:33:04
Message-ID: 165290238488.670.7500177735573254738@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/14/sql-createindex.html
Description:

I think the INVALID index can use further explanation, in particular, from
my experience it seems like when building an index concurrently, the index
gets inserted and labeled invalid while the index is being built, and then
the label gets removed if it finishes successfully or gets left on the index
if there is a failure while building the index. It is my current
understanding, after experimenting, that INVALID means 'incomplete', whether
that's because it's in progress or because it was unable to be completed,
but prior to my experiment my understanding was that INVALID indicated
failure.

This was especially confusing when we were adding an index to a very large
table because we assumed the INVALID index indicated failure when we
couldn't find any other sign of progress or failure.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Rajakavitha Kodhandapani 2022-05-19 13:32:41 Re: INVALID index while concurrent indexing in progress?
Previous Message James Douitsis 2022-05-18 12:30:28 Re: Spelling Mistake