pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: dancernerd32@gmail.com
Subject: INVALID index while concurrent indexing in progress?
Date: Wed, 18 May 2022 19:33:04 +0000
Message-ID: <165290238488.670.7500177735573254738@wrigleys.postgresql.org> (raw)

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.


view thread (11+ messages)  latest in thread

Message-ID: <165290238488.670.7500177735573254738@wrigleys.postgresql.org>
Permalink:  ../165290238488.670.7500177735573254738@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/165290238488.670.7500177735573254738@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, dancernerd32@gmail.com
  Subject: Re: INVALID index while concurrent indexing in progress?
  In-Reply-To: <165290238488.670.7500177735573254738@wrigleys.postgresql.org>
  References: <165290238488.670.7500177735573254738@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox