mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 14:01:31 +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;
|
||||
|
||||
#if PG_VERSION_NUM >= 130000
|
||||
if (!so->first)
|
||||
{
|
||||
#if PG_VERSION_NUM >= 130000
|
||||
tuplesort_reset(so->sortstate);
|
||||
#else
|
||||
tuplesort_end(so->sortstate);
|
||||
so->sortstate = InitScanSortState(so->tupdesc);
|
||||
#endif
|
||||
}
|
||||
|
||||
so->first = true;
|
||||
pairingheap_reset(so->listQueue);
|
||||
|
||||
Reference in New Issue
Block a user