summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeRecursiveunion.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-02-10 13:09:09 +0900
committerMichael Paquier <michael@paquier.xyz>2021-02-10 13:09:09 +0900
commit8493831385814c4f22b1d5b5d8a9227a2eb82712 (patch)
tree6116d2d41a2b2b9b7f6f93870c8ef87418596623 /src/backend/executor/nodeRecursiveunion.c
parent3fb4c75e857adee3da4386e947ba58a75f3e74b7 (diff)
Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY
For an index, attstattarget can be updated using ALTER INDEX SET STATISTICS. This data was lost on the new index after REINDEX CONCURRENTLY. The update of this field is done when the old and new indexes are swapped to make the fix back-patchable. Another approach we could look after in the long-term is to change index_create() to pass the wanted values of attstattarget when creating the new relation, but, as this would cause an ABI breakage this can be done only on HEAD. Reported-by: Ronan Dunklau Author: Michael Paquier Reviewed-by: Ronan Dunklau, Tomas Vondra Discussion: https://postgr.es/m/16628084.uLZWGnKmhe@laptop-ronand Backpatch-through: 12
Diffstat (limited to 'src/backend/executor/nodeRecursiveunion.c')
0 files changed, 0 insertions, 0 deletions