pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
Date
Msg-id E1j8w7n-0004Ml-68@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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
------
master

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

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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix possibly-uninitialized variable.
Next
From: Fujii Masao
Date:
Subject: pgsql: Report progress of streaming base backup.