Fixed segmentation fault with COUNT - fixes #9

This commit is contained in:
Andrew Kane
2021-06-09 03:13:22 -07:00
parent b713cbc3b6
commit 57e6a01214
5 changed files with 28 additions and 0 deletions

View File

@@ -251,6 +251,10 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
{
Datum value;
/* Safety check */
if (scan->orderByData == NULL)
elog(ERROR, "cannot scan ivfflat index without order");
/* No items will match if null */
if (scan->orderByData->sk_flags & SK_ISNULL)
return false;