Skip to content

Commit 9d924db

Browse files
Adjust overstrong nbtree skip array assertion.
Make an nbtree array preprocessing assertion account for scans that add fewer skip arrays than initially expected due to preprocessing finding an unsatisfiable array qual. Oversight in commit 92fe23d. Author: Peter Geoghegan <pg@bowt.ie> Reported-By: Mark Dilger <mark.dilger@enterprisedb.com> Discussion: https://postgr.es/m/CAHgHdKtQMhHy5qcB3KqCcGiW-Rp8P7KzUFRa9ZMKUiv6zen7LQ@mail.gmail.com
1 parent 92ee8a4 commit 9d924db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtpreprocesskeys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ _bt_preprocess_array_keys(IndexScanDesc scan, int *new_numberOfKeys)
18561856
numArrayKeyData++; /* keep this scan key/array */
18571857
}
18581858

1859-
Assert(numSkipArrayKeys == 0);
1859+
Assert(numSkipArrayKeys == 0 || !so->qual_ok);
18601860

18611861
/* Set final number of equality-type array keys */
18621862
so->numArrayKeys = numArrayKeys;

0 commit comments

Comments
 (0)