diff --git a/src/ivfscan.c b/src/ivfscan.c index 108b4c5..2fcaf3b 100644 --- a/src/ivfscan.c +++ b/src/ivfscan.c @@ -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 */