forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8c2010f
committed
Fix misuse of table_index_fetch_tuple_check().
Commit0d861bb, which added deduplication to nbtree, had_bt_check_unique() pass a TID to table_index_fetch_tuple_check() thatisn't safe to mutate. table_index_fetch_tuple_check()'s tid argument ismodified when the TID in question is not the latest visible tuple in ahot chain, though this wasn't documented.To fix, go back to using a local copy of the TID in _bt_check_unique(),and update comments above table_index_fetch_tuple_check().Backpatch: 13-, where B-Tree deduplication was introduced.1 parent185c6bc commit8c2010f
File tree
3 files changed
+9
-2
lines changed- src
- backend/access
- nbtree
- table
- include/access
3 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
993 | 995 | | |
994 | 996 | | |
995 | 997 | | |
| |||
0 commit comments
Comments
(0)