Preserve pg_index.indisreplident across REINDEX CONCURRENTLY
authorMichael Paquier <michael@paquier.xyz>
Fri, 5 Jun 2020 01:26:02 +0000 (10:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 5 Jun 2020 01:26:02 +0000 (10:26 +0900)
commit1127f0e392c757fc4fbbeffd7d0202bb02670e9c
tree42d1c09c63a244deb4ba5dc7067ec2c49b8c00dd
parenta9632830bb05dc98ae24017cafc652e4a66d44a8
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
src/backend/catalog/index.c
src/test/regress/expected/create_index.out
src/test/regress/sql/create_index.sql