pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Refactor checks for deleted GiST pages. 2+ messages / 1 participants [nested] [flat]
* pgsql: Refactor checks for deleted GiST pages. @ 2019-07-24 17:27 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 2+ messages in thread From: Heikki Linnakangas @ 2019-07-24 17:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9eb5607e69933f0a88b6774d1ba728f27afdbd3d Modified Files -------------- src/backend/access/gist/gist.c | 40 +++++++++++++++------------------------ src/backend/access/gist/gistget.c | 14 ++++++++++++++ 2 files changed, 29 insertions(+), 25 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Refactor checks for deleted GiST pages. @ 2019-07-24 17:27 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 2+ messages in thread From: Heikki Linnakangas @ 2019-07-24 17:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e2e992c93145cfc0e3563fb84efd25b390a84bb9 Modified Files -------------- src/backend/access/gist/gist.c | 40 +++++++++++++++------------------------ src/backend/access/gist/gistget.c | 14 ++++++++++++++ 2 files changed, 29 insertions(+), 25 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-07-24 17:27 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-07-24 17:27 pgsql: Refactor checks for deleted GiST pages. Heikki Linnakangas <heikki.linnakangas@iki.fi> 2019-07-24 17:27 pgsql: Refactor checks for deleted GiST pages. Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox