Added checks for invalid indexes - #591

This commit is contained in:
Andrew Kane
2024-06-10 21:20:54 -07:00
parent 9dcf1bdc80
commit 9e91af5989
3 changed files with 11 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ FindInsertPage(Relation index, Datum *values, BlockNumber *insertPage, ListInfo
FmgrInfo *procinfo;
Oid collation;
/* Ensure index is valid */
IvfflatGetMetaPageInfo(index, NULL, NULL);
/* Avoid compiler warning */
listInfo->blkno = nextblkno;
listInfo->offno = FirstOffsetNumber;