forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit87eb255
committed
Backpatch tuplesort.c assertion.
Backpatch an assertion (that was originally added to Postgres 12 bycommitdd299df) that seems broadly useful. The assertion can detectviolations of the HOT invariant (i.e. no two index tuples can point tothe same heap TID) when CREATE INDEX somehow incorrectly allows that totake place.For example, a IndexBuildHeapScan/heapam_index_build_range_scan bugmight result in two tuples that both point to the same heap TID. Ifthese two tuples also happen to be duplicates, the assertion will fail.Discussion:https://postgr.es/m/CAH2-WzmBxu4o=pMsniur+bwHqCGCmV_AOLkuK6BuU7ngA6evqw@mail.gmail.comBackpatch: 9.5-11 only1 parentbaecd27 commit87eb255
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4076 | 4076 |
| |
4077 | 4077 |
| |
4078 | 4078 |
| |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
4079 | 4082 |
| |
4080 | 4083 |
| |
4081 | 4084 |
| |
| |||
4128 | 4131 |
| |
4129 | 4132 |
| |
4130 | 4133 |
| |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
4131 | 4137 |
| |
4132 | 4138 |
| |
4133 | 4139 |
| |
|
0 commit comments
Comments
(0)