diff options
author | Noah Misch <noah@leadboat.com> | 2024-06-27 19:21:06 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2024-06-27 19:21:10 -0700 |
commit | e4afd7153bd80404bffc4d17b37451d7317ae53e (patch) | |
tree | a61bc96f94d943001bed51a684eb56fc2b4cb87b /src/include/regex/regex.h | |
parent | fc8c25806e84c38f3920fd3507a389eac34d62a5 (diff) | |
download | postgresql-e4afd7153bd80404bffc4d17b37451d7317ae53e.tar.gz postgresql-e4afd7153bd80404bffc4d17b37451d7317ae53e.zip |
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/20240114201411.d0@rfd.leadboat.com
Discussion: https://postgr.es/m/20240512232923.aa.nmisch@google.com
Diffstat (limited to 'src/include/regex/regex.h')
0 files changed, 0 insertions, 0 deletions