pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix yet another crash in page split during GiST index creation.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix yet another crash in page split during GiST index creation.
@ 2019-12-16 12:00 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2019-12-16 12:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix yet another crash in page split during GiST index creation.

Commit a7ee7c8513 fixed a bug in GiST page split during index creation,
where we failed to re-find the position of a downlink after the page
containing it was split. However, that fix was incomplete; the other call
to gistinserttuples() in the same function needs to also clear
'downlinkoffnum'.

Fixes bug #16134 reported by Alexander Lakhin, for real this time. The
previous fix was enough to fix the crash with the reproducer script for
bug #16162, but the original script for #16134 was still crashing.

Backpatch to v12, like the previous incomplete fix.

Discussion: https://www.postgresql.org/message-id/d869f537-abe4-d2ea-0510-38cd053f5152%40gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/741b884353e4803abc15d4392ad287b0d5953fc4

Modified Files
--------------
src/backend/access/gist/gist.c | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)



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

* pgsql: Fix yet another crash in page split during GiST index creation.
@ 2019-12-16 12:00 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2019-12-16 12:00 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix yet another crash in page split during GiST index creation.

Commit a7ee7c8513 fixed a bug in GiST page split during index creation,
where we failed to re-find the position of a downlink after the page
containing it was split. However, that fix was incomplete; the other call
to gistinserttuples() in the same function needs to also clear
'downlinkoffnum'.

Fixes bug #16134 reported by Alexander Lakhin, for real this time. The
previous fix was enough to fix the crash with the reproducer script for
bug #16162, but the original script for #16134 was still crashing.

Backpatch to v12, like the previous incomplete fix.

Discussion: https://www.postgresql.org/message-id/d869f537-abe4-d2ea-0510-38cd053f5152%40gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/42d1acd2edc4a02de63c7b3d2a18056d393e373d

Modified Files
--------------
src/backend/access/gist/gist.c | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)



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


end of thread, other threads:[~2019-12-16 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-16 12:00 pgsql: Fix yet another crash in page split during GiST index creation. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2019-12-16 12:00 pgsql: Fix yet another crash in page split during GiST index creation. 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