diff options
author | Noah Misch | 2024-06-28 02:21:06 +0000 |
---|---|---|
committer | Noah Misch | 2024-06-28 02:21:06 +0000 |
commit | f9f47f0d93d1a493a3365625f96026c7b18d7cf5 (patch) | |
tree | a35c51f21bddc89825a64df1cca17ee5b255300b /src/backend/access/gist/gistproc.c | |
parent | 5b823b179e5e8ab32f140658698ca08f8c83f06e (diff) |
Cope with inplace update making catcache stale during TOAST fetch.
This extends ad98fb14226ae6456fbaed7990ee7591cbe5efd2 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/[email protected]
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions