postgresql/src/backend/utils/cache
Noah Misch f9f47f0d93 Cope with inplace update making catcache stale during TOAST fetch.
This extends ad98fb1422 to invals of
inplace updates.  Trouble requires an inplace update of a catalog having
a TOAST table, so only pg_database was at risk.  (The other catalog on
which core code performs inplace updates, pg_class, has no TOAST table.)
Trouble would require something like the inplace-inval.spec test.
Consider GRANT ... ON DATABASE fetching a stale row from cache and
discarding a datfrozenxid update that vac_truncate_clog() has already
relied upon.  Back-patch to v12 (all supported versions).

Reviewed (in an earlier version) by Robert Haas.

Discussion: https://postgr.es/m/20240114201411.d0@rfd.leadboat.com
Discussion: https://postgr.es/m/20240512232923.aa.nmisch@google.com
2024-06-27 19:21:06 -07:00
..
attoptcache.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
catcache.c Cope with inplace update making catcache stale during TOAST fetch. 2024-06-27 19:21:06 -07:00
evtcache.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
inval.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
lsyscache.c ATTACH PARTITION: Don't match a PK with a UNIQUE constraint 2024-04-15 15:07:47 +02:00
Makefile Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
partcache.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
plancache.c Separate equalRowTypes() from equalTupleDescs() 2024-03-17 05:58:04 +01:00
relcache.c Fix relcache invalidation when relfilelocator is updated 2024-06-21 17:13:10 +03:00
relfilenumbermap.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
relmapper.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
spccache.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
syscache.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
ts_cache.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
typcache.c Catalog domain not-null constraints 2024-03-20 10:05:37 +01:00