From 361557a9763977c7504c82ce395ac7fcfb446d5e Mon Sep 17 00:00:00 2001 From: Mehmet Yilmaz Date: Tue, 13 May 2025 14:03:10 +0000 Subject: [PATCH] Update version check in ruleutils_18.c for PostgreSQL 18 compatibility --- src/backend/distributed/deparser/ruleutils_18.c | 2 +- src/include/pg_version_constants.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/deparser/ruleutils_18.c b/src/backend/distributed/deparser/ruleutils_18.c index 61f2a0aa8..d254aa0a4 100644 --- a/src/backend/distributed/deparser/ruleutils_18.c +++ b/src/backend/distributed/deparser/ruleutils_18.c @@ -18,7 +18,7 @@ #include "pg_config.h" -#if (PG_VERSION_NUM >= PG_VERSION_17) && (PG_VERSION_NUM < PG_VERSION_18) +#if (PG_VERSION_NUM >= PG_VERSION_18) && (PG_VERSION_NUM < PG_VERSION_19) #include "postgres.h" diff --git a/src/include/pg_version_constants.h b/src/include/pg_version_constants.h index c8bfd319e..b3f293a2c 100644 --- a/src/include/pg_version_constants.h +++ b/src/include/pg_version_constants.h @@ -15,5 +15,6 @@ #define PG_VERSION_16 160000 #define PG_VERSION_17 170000 #define PG_VERSION_18 180000 +#define PG_VERSION_19 190000 #endif /* PG_VERSION_CONSTANTS */