Thread: pgsql: Preserve pg_index.indisreplident across REINDEX CONCURRENTLY

pgsql: Preserve pg_index.indisreplident across REINDEX CONCURRENTLY

From
Michael Paquier
Date:
Preserve pg_index.indisreplident across REINDEX CONCURRENTLY

If the flag value is lost, logical decoding would work the same way as
REPLICA IDENTITY NOTHING, meaning that no old tuple values would be
included in the changes anymore produced by logical decoding.

Author: Michael Paquier
Reviewed-by: Euler Taveira
Discussion: https://postgr.es/m/20200603065340.GK89559@paquier.xyz
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1127f0e392c757fc4fbbeffd7d0202bb02670e9c

Modified Files
--------------
src/backend/catalog/index.c                |  4 ++++
src/test/regress/expected/create_index.out | 21 +++++++++++++++++++++
src/test/regress/sql/create_index.sql      | 11 +++++++++++
3 files changed, 36 insertions(+)