pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix yet another crash in page split during GiST index creation.
Date: Mon, 16 Dec 2019 12:00:23 +0000
Message-ID: <E1igp31-0005lV-Q8@gemulon.postgresql.org> (raw)

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1igp31-0005lV-Q8@gemulon.postgresql.org>
Permalink:  ../E1igp31-0005lV-Q8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1igp31-0005lV-Q8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix yet another crash in page split during GiST index creation.
  In-Reply-To: <E1igp31-0005lV-Q8@gemulon.postgresql.org>
  References: <E1igp31-0005lV-Q8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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