Refactor checks for deleted GiST pages.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gist.c | modified | +15 −25 |
| src/backend/access/gist/gistget.c | modified | +14 −0 |
Discussion
- GiST VACUUM 82 messages · 2018-03-07 → 2019-07-24