postgresql/src/backend/utils/cache
Michael Paquier bd12080980 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
2021-02-10 13:06:48 +09:00
..
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
attoptcache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
catcache.c Fix routine name in comment of catcache.c 2021-01-13 10:32:21 +09:00
evtcache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
inval.c Replace CLOBBER_CACHE_ALWAYS with run-time GUC 2021-01-06 10:46:44 +01:00
lsyscache.c Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY 2021-02-10 13:06:48 +09:00
partcache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
plancache.c Improve performance of repeated CALLs within plpgsql procedures. 2021-01-25 22:28:29 -05:00
relcache.c Replace CLOBBER_CACHE_ALWAYS with run-time GUC 2021-01-06 10:46:44 +01:00
relfilenodemap.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
relmapper.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
spccache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syscache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
ts_cache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
typcache.c Update copyright for 2021 2021-01-02 13:06:25 -05:00