diff --git a/src/ivfscan.c b/src/ivfscan.c index 0b2de98b..e9b4f718 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -388,7 +388,7 @@ ivfflatbeginscan(Relation index, int nkeys, int norderbys) so->lists = palloc_array_checked(IvfflatScanList, maxProbes); so->listsVisited = 0; - so->listsHeap = pairingheap_allocate(CompareLists, scan); + so->listsHeap = pairingheap_allocate(CompareLists, NULL); /* Create tuple description for sorting */ so->tupdesc = CreateTemplateTupleDesc(2);