From 45103629dc84ee569739d2187d3f15772c057ea5 Mon Sep 17 00:00:00 2001 From: gindibay Date: Mon, 9 Oct 2023 15:56:05 +0300 Subject: [PATCH] Fixes compile error for PG 14 --- src/backend/distributed/deparser/citus_deparseutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/distributed/deparser/citus_deparseutils.c b/src/backend/distributed/deparser/citus_deparseutils.c index 546360fdf..d7554aa79 100644 --- a/src/backend/distributed/deparser/citus_deparseutils.c +++ b/src/backend/distributed/deparser/citus_deparseutils.c @@ -35,11 +35,13 @@ handleOption(StringInfo buf, DefElem *option, const struct option_format *opt_fo bool value = defGetBoolean(option); appendStringInfo(buf, opt_formats[i].format, value ? "true" : "false"); } +#if PG_VERSION_NUM >= PG_VERSION_15 else if (strcmp(opt_formats[i].type, "object_id") == 0) { Oid value = defGetObjectId(option); appendStringInfo(buf, opt_formats[i].format, value ); } +#endif else if (strcmp(opt_formats[i].type, "literal_cstr") == 0) { char *value = defGetString(option);