forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbdaaf1b
committed
Add indisreplident to fields refreshed by RelationReloadIndexInfo()
RelationReloadIndexInfo() is a fast-path used for index reloads in therelation cache, and it has always forgotten about updatingindisreplident, which is something that would happen after an index isselected for a replica identity. This can lead to incorrect cacheinformation provided when executing a command in a transaction contextthat updates indisreplident.None of the code paths currently on HEAD that need to check uponpg_index.indisreplident fetch its value from the relation cache, alwaysrelying on a fresh copy on the syscache. Unfortunately, this may not bethe case of out-of-core code, that could see out-of-date value.Author: Shruthi GowdaReviewed-by: Robert Haas, Dilip Kumar, Michael PaquierDiscussion:https://postgr.es/m/CAASxf_PBcxax0wW-3gErUyftZ0XrCs3Lrpuhq4-Z3Fak1DoW7Q@mail.gmail.comBackpatch-through: 111 parentc89d74c commitbdaaf1b
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2318 | 2318 |
| |
2319 | 2319 |
| |
2320 | 2320 |
| |
| 2321 | + | |
2321 | 2322 |
| |
2322 | 2323 |
| |
2323 | 2324 |
| |
|
0 commit comments
Comments
(0)