]> granicus.if.org Git - postgresql/commit
Fix bug in pairingheap_SpGistSearchItem_cmp()
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 24 Sep 2019 22:47:36 +0000 (01:47 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 24 Sep 2019 22:52:55 +0000 (01:52 +0300)
commit8728552b291b8fe3778346fb4d4b7d1c8743f708
treea733329b3f0a4abbd576f54d7beb693212f3b42f
parent17822c0e4f5ab8093e78f665c9e44766ae648a44
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
src/backend/access/spgist/spgscan.c