aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-07-14 11:16:06 +0900
committerMichael Paquier <michael@paquier.xyz>2023-07-14 11:16:06 +0900
commiteb3abec4b67d2b51406c23030dd87643fa2024c2 (patch)
tree814ac9d9a88c50dd6fa4c3777729b0cb24c14f9f /src/backend/access/transam/commit_ts.c
parentc0dc97c7bfd14b460536c40d14787f82ab61d0d9 (diff)
downloadpostgresql-eb3abec4b67d2b51406c23030dd87643fa2024c2.tar.gz
postgresql-eb3abec4b67d2b51406c23030dd87643fa2024c2.zip
Add indisreplident to fields refreshed by RelationReloadIndexInfo()
RelationReloadIndexInfo() is a fast-path used for index reloads in the relation cache, and it has always forgotten about updating indisreplident, which is something that would happen after an index is selected for a replica identity. This can lead to incorrect cache information provided when executing a command in a transaction context that updates indisreplident. None of the code paths currently on HEAD that need to check upon pg_index.indisreplident fetch its value from the relation cache, always relying on a fresh copy on the syscache. Unfortunately, this may not be the case of out-of-core code, that could see out-of-date value. Author: Shruthi Gowda Reviewed-by: Robert Haas, Dilip Kumar, Michael Paquier Discussion: https://postgr.es/m/CAASxf_PBcxax0wW-3gErUyftZ0XrCs3Lrpuhq4-Z3Fak1DoW7Q@mail.gmail.com Backpatch-through: 11
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions