summaryrefslogtreecommitdiff
path: root/src/backend/commands/proclang.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2020-07-29 16:00:52 -0700
committerPeter Geoghegan <pg@bowt.ie>2020-07-29 16:00:52 -0700
commitfdbb97939b5519648414e032251559d331148bcf (patch)
tree16ff72be3a545bd84af278b9c874137e28428371 /src/backend/commands/proclang.c
parent9729f99798af21259019eb4cd513f26b0ce1ced9 (diff)
Backpatch tuplesort.c assertion.
Backpatch an assertion (that was originally added to Postgres 12 by commit dd299df8189) that seems broadly useful. The assertion can detect violations of the HOT invariant (i.e. no two index tuples can point to the same heap TID) when CREATE INDEX somehow incorrectly allows that to take place. For example, a IndexBuildHeapScan/heapam_index_build_range_scan bug might result in two tuples that both point to the same heap TID. If these two tuples also happen to be duplicates, the assertion will fail. Discussion: https://postgr.es/m/CAH2-WzmBxu4o=pMsniur+bwHqCGCmV_AOLkuK6BuU7ngA6evqw@mail.gmail.com Backpatch: 9.5-11 only
Diffstat (limited to 'src/backend/commands/proclang.c')
0 files changed, 0 insertions, 0 deletions