Обсуждение: pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY

Поиск
Список
Период
Сортировка

pgsql: Preserve pg_index.indisclustered across REINDEX CONCURRENTLY

От
Michael Paquier
Дата:
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(-)