From 0b551e5da98483934045cacf956bbd2041d566ec Mon Sep 17 00:00:00 2001 From: Jeff Janes Date: Thu, 17 Oct 2019 12:10:12 -0400 Subject: [PATCH] Fix for v13 API changes "add_string_reloption" now requires a lock mode, since commit 69f94108079d70093b59096a3ae0ad82c842b4c0 make installcheck passes on 11.5, 12.0, and 13dev. --- src/rumutil.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/rumutil.c b/src/rumutil.c index 2b2af134fb..0ae747cb43 100644 --- a/src/rumutil.c +++ b/src/rumutil.c @@ -83,13 +83,25 @@ _PG_init(void) add_string_reloption(rum_relopt_kind, "attach", "Column name to attach as additional info", - NULL, NULL); + NULL, NULL +#if PG_VERSION_NUM >= 130000 + ,AccessExclusiveLock +#endif + ); add_string_reloption(rum_relopt_kind, "to", "Column name to add a order by column", - NULL, NULL); + NULL, NULL +#if PG_VERSION_NUM >= 130000 + ,AccessExclusiveLock +#endif + ); add_bool_reloption(rum_relopt_kind, "order_by_attach", "Use (addinfo, itempointer) order instead of just itempointer", - false); + false +#if PG_VERSION_NUM >= 130000 + ,AccessExclusiveLock +#endif + ); } /*