pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use full 64-bit XID for checking if a deleted GiST page is old e
2+ messages / 1 participants
[nested] [flat]

* pgsql: Use full 64-bit XID for checking if a deleted GiST page is old e
@ 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

Use full 64-bit XID for checking if a deleted GiST page is old enough.

Otherwise, after a deleted page gets even older, it becomes unrecyclable
again. B-tree has the same problem, and has had since time immemorial,
but let's at least fix this in GiST, where this is new.

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/6655a7299d835dea9e8e0ba69cc5284611b96f29

Modified Files
--------------
src/backend/access/gist/gistutil.c     | 24 +++++++++++++++---
src/backend/access/gist/gistvacuum.c   |  7 +++---
src/backend/access/gist/gistxlog.c     | 32 ++++++++++++++++++------
src/backend/access/rmgrdesc/gistdesc.c | 11 ++++++---
src/backend/utils/time/snapmgr.c       | 30 +++++++++++++++++++++++
src/include/access/gist.h              | 45 ++++++++++++++++++++++++++++++----
src/include/access/gist_private.h      |  4 +--
src/include/access/gistxlog.h          |  6 ++---
src/include/utils/snapmgr.h            |  3 +++
9 files changed, 134 insertions(+), 28 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Use full 64-bit XID for checking if a deleted GiST page is old e
@ 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

Use full 64-bit XID for checking if a deleted GiST page is old enough.

Otherwise, after a deleted page gets even older, it becomes unrecyclable
again. B-tree has the same problem, and has had since time immemorial,
but let's at least fix this in GiST, where this is new.

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/fb5344c969af77bb78bc2a643fb75b9f8fea72dd

Modified Files
--------------
src/backend/access/gist/gistutil.c     | 24 +++++++++++++++---
src/backend/access/gist/gistvacuum.c   |  7 +++---
src/backend/access/gist/gistxlog.c     | 32 ++++++++++++++++++------
src/backend/access/rmgrdesc/gistdesc.c | 11 ++++++---
src/backend/utils/time/snapmgr.c       | 30 +++++++++++++++++++++++
src/include/access/gist.h              | 45 ++++++++++++++++++++++++++++++----
src/include/access/gist_private.h      |  4 +--
src/include/access/gistxlog.h          |  6 ++---
src/include/utils/snapmgr.h            |  3 +++
9 files changed, 134 insertions(+), 28 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: Use full 64-bit XID for checking if a deleted GiST page is old e Heikki Linnakangas <heikki.linnakangas@iki.fi>
2019-07-24 17:27 pgsql: Use full 64-bit XID for checking if a deleted GiST page is old e 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