pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
Date: Tue, 03 Mar 2020 01:13:31 +0000
Message-ID: <E1j8w7n-0004Mm-7D@gemulon.postgresql.org> (raw)

Preserve pg_index.indisclustered across REINDEX CONCURRENTLY

If the flag value is lost, a CLUSTER query following REINDEX
CONCURRENTLY could fail.  Non-concurrent REINDEX is already handling
this case consistently.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20200229024202.GH29456@telsasoft.com
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f087d63a45b5935b5c15cecb7d88f140d5cc8b7c

Modified Files
--------------
src/backend/catalog/index.c                |  8 +++++++-
src/test/regress/expected/create_index.out | 13 +++++++++++++
src/test/regress/sql/create_index.sql      |  9 +++++++++
3 files changed, 29 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1j8w7n-0004Mm-7D@gemulon.postgresql.org>
Permalink:  ../E1j8w7n-0004Mm-7D@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j8w7n-0004Mm-7D@gemulon.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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
  In-Reply-To: <E1j8w7n-0004Mm-7D@gemulon.postgresql.org>
  References: <E1j8w7n-0004Mm-7D@gemulon.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