From 6ad276aa546497445c4c7595c3e028fc0d81f3dc Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 10 Jun 2023 11:35:28 -0700 Subject: [PATCH] Added Postgres 16 to CI --- .github/workflows/build.yml | 2 ++ src/ivfinsert.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90e1d02..d3c3210 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,8 @@ jobs: fail-fast: false matrix: include: + - postgres: 16 + os: ubuntu-22.04 - postgres: 15 os: ubuntu-22.04 - postgres: 14 diff --git a/src/ivfinsert.c b/src/ivfinsert.c index 752ce55..8761f6a 100644 --- a/src/ivfinsert.c +++ b/src/ivfinsert.c @@ -23,6 +23,10 @@ FindInsertPage(Relation rel, Datum *values, BlockNumber *insertPage, ListInfo * OffsetNumber offno; OffsetNumber maxoffno; + /* Avoid compiler warning */ + listInfo->blkno = nextblkno; + listInfo->offno = FirstOffsetNumber; + procinfo = index_getprocinfo(rel, 1, IVFFLAT_DISTANCE_PROC); collation = rel->rd_indcollation[0];