pgsql: Fix bug in pairingheap_SpGistSearchItem_cmp()

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix bug in pairingheap_SpGistSearchItem_cmp()
Date: 2019-09-24 22:56:02
Message-ID: E1iCtj0-0007sQ-E4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bug in pairingheap_SpGistSearchItem_cmp()

Our item contains only so->numberOfNonNullOrderBys of distances. Reflect that
in the loop upper bound.

Discussion: https://postgr.es/m/53536807-784c-e029-6e92-6da802ab8d60%40postgrespro.ru
Author: Nikita Glukhov
Backpatch-through: 12

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8728552b291b8fe3778346fb4d4b7d1c8743f708

Modified Files
--------------
src/backend/access/spgist/spgscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2019-09-24 22:56:08 pgsql: Fix bug in pairingheap_SpGistSearchItem_cmp()
Previous Message Alvaro Herrera 2019-09-24 19:46:52 pgsql: Rework WAL-reading supporting structs