]> granicus.if.org Git - postgresql/commit
Refactor checks for deleted GiST pages.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Jul 2019 17:24:05 +0000 (20:24 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Jul 2019 17:24:05 +0000 (20:24 +0300)
commit9eb5607e69933f0a88b6774d1ba728f27afdbd3d
tree26fb607fb0d1ce8aa78dec122ff027d5fe9a29e1
parent1a721248f3899ccf8c0c7512b91d8458f2394aeb
Refactor checks for deleted GiST pages.

The explicit check in gistScanPage() isn't currently really necessary, as
a deleted page is always empty, so the loop would fall through without
doing anything, anyway. But it's a marginal optimization, and it gives a
nice place to attach a comment to explain how it works.

Backpatch to v12, where GiST page deletion was introduced.

Reviewed-by: Andrey Borodin
Discussion: https://www.postgresql.org/message-id/835A15A5-F1B4-4446-A711-BF48357EB602%40yandex-team.ru
src/backend/access/gist/gist.c
src/backend/access/gist/gistget.c