pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix GiST index deletion assert issue.
Date: Wed, 27 Jan 2021 07:26:09 +0000
Message-ID: <E1l4fDN-0002gc-G3@gemulon.postgresql.org> (raw)

Fix GiST index deletion assert issue.

Avoid calling heap_index_delete_tuples() with an empty deltids array to
avoid an assertion failure.

This issue was arguably an oversight in commit b5f58cf2, though the
failing assert itself was added by my recent commit d168b666.  No
backpatch, though, since the oversight is harmless in the back branches.

Author: Peter Geoghegan <pg@bowt.ie>
Reported-By: Jaime Casanova <jcasanov@systemguards.com.ec>
Discussion: https://postgr.es/m/CAJKUy5jscES84n3puE=sYngyF+zpb4wv8UMtuLnLPv5z=6yyNw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e42b3c3bd6a9c6233ac4c8a2e9b040367ba2f97c

Modified Files
--------------
src/backend/access/gist/gist.c   | 13 +++++++------
src/backend/access/index/genam.c |  2 ++
2 files changed, 9 insertions(+), 6 deletions(-)



Message-ID: <E1l4fDN-0002gc-G3@gemulon.postgresql.org>
Permalink:  ../E1l4fDN-0002gc-G3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l4fDN-0002gc-G3@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: pg@bowt.ie
  Subject: Re: pgsql: Fix GiST index deletion assert issue.
  In-Reply-To: <E1l4fDN-0002gc-G3@gemulon.postgresql.org>
  References: <E1l4fDN-0002gc-G3@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