pgsql: Fix GiST index deletion assert issue.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix GiST index deletion assert issue.
Date: 2021-01-27 07:26:09
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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(at)bowt(dot)ie>
Reported-By: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>



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

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-01-27 14:07:41 Re: pgsql: Refactor code in tablecmds.c to check and process tablespace mov
Previous Message Michael Paquier 2021-01-27 04:41:49 pgsql: doc: Remove reference to views for TRUNCATE privilege