diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cba8314..f0913a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - postgres: [13, 12, 11, 10, 9.6] + postgres: [14, 13, 12, 11, 10, 9.6] include: - os: macos-latest postgres: 13 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5802ddc..d96c7a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.9 (unreleased) + +- Added support for Postgres 14 + ## 0.1.8 (2021-09-07) - Added cast for `vector` to `real[]` diff --git a/src/ivfflat.h b/src/ivfflat.h index 44d6583..c7576d4 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -180,6 +180,9 @@ void IvfflatInitPage(Relation index, Buffer *buf, Page *page, GenericXLogState IndexBuildResult *ivfflatbuild(Relation heap, Relation index, IndexInfo *indexInfo); void ivfflatbuildempty(Relation index); bool ivfflatinsert(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid, Relation heap, IndexUniqueCheck checkUnique +#if PG_VERSION_NUM >= 140000 + ,bool indexUnchanged +#endif #if PG_VERSION_NUM >= 100000 ,IndexInfo *indexInfo #endif diff --git a/src/ivfinsert.c b/src/ivfinsert.c index fa10f0f..9e63662 100644 --- a/src/ivfinsert.c +++ b/src/ivfinsert.c @@ -128,6 +128,9 @@ InsertTuple(Relation rel, IndexTuple itup, Relation heapRel, Datum *values) bool ivfflatinsert(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid, Relation heap, IndexUniqueCheck checkUnique +#if PG_VERSION_NUM >= 140000 + ,bool indexUnchanged +#endif #if PG_VERSION_NUM >= 100000 ,IndexInfo *indexInfo #endif