Preserve pg_index.indisclustered across REINDEX CONCURRENTLY
authorMichael Paquier
Tue, 3 Mar 2020 01:12:49 +0000 (10:12 +0900)
committerMichael Paquier
Tue, 3 Mar 2020 01:12:49 +0000 (10:12 +0900)
commitf087d63a45b5935b5c15cecb7d88f140d5cc8b7c
treeda946cd0d358d51d464aa96d929fb95195411160
parent3b5709e664c44c75c1d27a20c59fdbb0dec3ded5
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[email protected]
Backpatch-through: 12
src/backend/catalog/index.c
src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql