]> granicus.if.org Git - postgresql/commit
Improve handling of dead tuples in hash indexes.
authorRobert Haas <rhaas@postgresql.org>
Tue, 8 Nov 2016 15:47:52 +0000 (10:47 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 8 Nov 2016 15:52:51 +0000 (10:52 -0500)
commitf0e72a25b05d4c29d0102fa0b892782ff193a00e
tree196f60f07cd095f5a0f2dc4fea5c797d2ab357f8
parent650b96707672599e290c982dd63e3a896dbbaba6
Improve handling of dead tuples in hash indexes.

When squeezing a bucket during vacuum, it's not necessary to retain
any tuples already marked as dead, so ignore them when deciding which
tuples must be moved in order to empty a bucket page.  Similarly, when
splitting a bucket, relocating dead tuples to the new bucket is a
waste of effort; instead, just ignore them.

Amit Kapila, reviewed by me.  Testing help provided by Ashutosh
Sharma.
src/backend/access/hash/hashovfl.c
src/backend/access/hash/hashpage.c