aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-10-29 10:53:48 -0700
committerPeter Geoghegan <pg@bowt.ie>2021-10-29 10:53:48 -0700
commit5f55fc5a346e1ab54f3d756e368d276b95be8c4a (patch)
treef99a39d74693456c7f5ba147775eaf1934164cbe /src/backend/access/gist/gistvacuum.c
parenta2a731d6c9db0ba650aa6f7c4fe349ccf712f74d (diff)
downloadpostgresql-5f55fc5a346e1ab54f3d756e368d276b95be8c4a.tar.gz
postgresql-5f55fc5a346e1ab54f3d756e368d276b95be8c4a.zip
Demote pg_unreachable() in heapam to an assertion.
Commit d168b66682, which overhauled index deletion, added a pg_unreachable() to the end of a sort comparator used when sorting heap TIDs from an index page. This allows the compiler to apply optimizations that assume that the heap TIDs from the index AM must always be unique. That doesn't seem like a good idea now, given recent reports of corruption involving duplicate TIDs in indexes on Postgres 14. Demote to an assertion, just in case. Backpatch: 14-, where index deletion was overhauled.
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions