Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
authorMichael Paquier <michael@paquier.xyz>
Tue, 3 Mar 2020 01:12:28 +0000 (10:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 3 Mar 2020 01:12:28 +0000 (10:12 +0900)
commitd79fb88ac738e0854e84a6c9445babfa5b2504b0
tree54a5bee61d207261dff8b93b5a4870d819e6aead
parent91f3bd732cea7e25e53eaceae88232d0ab984434
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
src/backend/catalog/index.c
src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql