aboutsummaryrefslogtreecommitdiff
path: root/databases/pg_citus/files/patch-src_include_pg__version__compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'databases/pg_citus/files/patch-src_include_pg__version__compat.h')
-rw-r--r--databases/pg_citus/files/patch-src_include_pg__version__compat.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/databases/pg_citus/files/patch-src_include_pg__version__compat.h b/databases/pg_citus/files/patch-src_include_pg__version__compat.h
deleted file mode 100644
index a421c728c951..000000000000
--- a/databases/pg_citus/files/patch-src_include_pg__version__compat.h
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/include/pg_version_compat.h.orig 2023-02-15 11:30:17 UTC
-+++ src/include/pg_version_compat.h
-@@ -54,7 +54,14 @@ pg_strtoint64(char *s)
- return result;
- }
-
--
-+/*
-+ * RelationGetSmgr got backported in 13.10 and 14.7 so redefining it for any
-+ * version higher causes compilation errors due to redefining of the function.
-+ * We want to use it in all versions. So we backport it ourselves in earlier
-+ * versions, and rely on the Postgres provided version in the later versions.
-+ */
-+#if PG_VERSION_NUM >= PG_VERSION_13 && PG_VERSION_NUM < 130010 \
-+ || PG_VERSION_NUM >= PG_VERSION_14 && PG_VERSION_NUM < 140007
- static inline SMgrRelation
- RelationGetSmgr(Relation rel)
- {
-@@ -64,6 +71,9 @@ RelationGetSmgr(Relation rel)
- }
- return rel->rd_smgr;
- }
-+
-+
-+#endif
-
-
- #define CREATE_SEQUENCE_COMMAND \