From 2dd38404955b2c31195c45c733db06600f7eef9e Mon Sep 17 00:00:00 2001 From: Pavel Borisov Date: Fri, 8 Oct 2021 13:20:34 +0400 Subject: [PATCH] Compatibility with PG 14 --- src/rum.h | 3 +++ src/ruminsert.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/rum.h b/src/rum.h index 36f2e21f4b..8f54edd5d4 100644 --- a/src/rum.h +++ b/src/rum.h @@ -449,6 +449,9 @@ extern void rumbuildempty(Relation index); extern bool ruminsert(Relation index, Datum *values, bool *isnull, ItemPointer ht_ctid, Relation heapRel, IndexUniqueCheck checkUnique +#if PG_VERSION_NUM >= 140000 + , bool indexUnchanged +#endif #if PG_VERSION_NUM >= 100000 , struct IndexInfo *indexInfo #endif diff --git a/src/ruminsert.c b/src/ruminsert.c index 7315f517f3..f42c8a9526 100644 --- a/src/ruminsert.c +++ b/src/ruminsert.c @@ -818,6 +818,9 @@ bool ruminsert(Relation index, Datum *values, bool *isnull, ItemPointer ht_ctid, Relation heapRel, IndexUniqueCheck checkUnique +#if PG_VERSION_NUM >= 140000 + , bool indexUnchanged +#endif #if PG_VERSION_NUM >= 100000 , struct IndexInfo *indexInfo #endif