mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 14:46:56 +08:00
Reset tuple sort for Postgres 12 [skip ci]
This commit is contained in:
@@ -292,10 +292,15 @@ ivfflatrescan(IndexScanDesc scan, ScanKey keys, int nkeys, ScanKey orderbys, int
|
|||||||
{
|
{
|
||||||
IvfflatScanOpaque so = (IvfflatScanOpaque) scan->opaque;
|
IvfflatScanOpaque so = (IvfflatScanOpaque) scan->opaque;
|
||||||
|
|
||||||
#if PG_VERSION_NUM >= 130000
|
|
||||||
if (!so->first)
|
if (!so->first)
|
||||||
|
{
|
||||||
|
#if PG_VERSION_NUM >= 130000
|
||||||
tuplesort_reset(so->sortstate);
|
tuplesort_reset(so->sortstate);
|
||||||
|
#else
|
||||||
|
tuplesort_end(so->sortstate);
|
||||||
|
so->sortstate = InitScanSortState(so->tupdesc);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
so->first = true;
|
so->first = true;
|
||||||
pairingheap_reset(so->listQueue);
|
pairingheap_reset(so->listQueue);
|
||||||
|
|||||||
Reference in New Issue
Block a user