Added assertions to scan [skip ci]

This commit is contained in:
Andrew Kane
2023-01-10 21:07:19 -08:00
parent 7b0b6a7875
commit b6f1a82774

View File

@@ -277,6 +277,10 @@ ivfflatgettuple(IndexScanDesc scan, ScanDirection dir)
value = scan->orderByData->sk_argument;
/* Value should not be compressed or toasted */
Assert(!VARATT_IS_COMPRESSED(DatumGetPointer(value)));
Assert(!VARATT_IS_EXTENDED(DatumGetPointer(value)));
if (so->normprocinfo != NULL)
{
/* No items will match if normalization fails */