postgresql/src/backend/utils/cache
Tomas Vondra 19d8e2308b Ignore BRIN indexes when checking for HOT updates
When determining whether an index update may be skipped by using HOT, we
can ignore attributes indexed by block summarizing indexes without
references to individual tuples that need to be cleaned up.

A new type TU_UpdateIndexes provides a signal to the executor to
determine which indexes to update - no indexes, all indexes, or only the
summarizing indexes.

This also removes rd_indexattr list, and replaces it with rd_attrsvalid
flag. The list was not used anywhere, and a simple flag is sufficient.

This was originally committed as 5753d4ee32, but then got reverted by
e3fcca0d0d because of correctness issues.

Original patch by Josef Simanek, various fixes and improvements by Tomas
Vondra and me.

Authors: Matthias van de Meent, Josef Simanek, Tomas Vondra
Reviewed-by: Tomas Vondra, Alvaro Herrera
Discussion: https://postgr.es/m/05ebcb44-f383-86e3-4f31-0a97a55634cf@enterprisedb.com
Discussion: https://postgr.es/m/CAFp7QwpMRGcDAQumN7onN9HjrJ3u4X3ZRXdGFT0K5G2JWvnbWg%40mail.gmail.com
2023-03-20 11:02:42 +01:00
..
Makefile Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
attoptcache.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
catcache.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
evtcache.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
inval.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
lsyscache.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
partcache.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
plancache.c Get rid of the "new" and "old" entries in a view's rangetable. 2023-01-18 13:23:57 -05:00
relcache.c Ignore BRIN indexes when checking for HOT updates 2023-03-20 11:02:42 +01:00
relfilenumbermap.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
relmapper.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
spccache.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
syscache.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ts_cache.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
typcache.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00