Fix bug in pairingheap_SpGistSearchItem_cmp()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 8728552b291b8fe3778346fb4d4b7d1c8743f708
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2019-09-24T22:52:55Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/access/spgist/spgscan.c modified +1 −1

Discussion