From 4eafd3a51b3c480fc16dc7acf314bbd6c2206ccc Mon Sep 17 00:00:00 2001 From: naisila Date: Tue, 9 Jul 2024 15:41:46 +0200 Subject: [PATCH] RangeVarCallbackOwnsTable was replaced by RangeVarCallbackMaintainsTable Relevant PG commit: ecb0fd33720fab91df1207e85704f382f55e1eb7 https://github.com/postgres/postgres/commit/ecb0fd33720fab91df1207e85704f382f55e1eb7 --- src/include/pg_version_compat.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/include/pg_version_compat.h b/src/include/pg_version_compat.h index 29f09024c..1407eccef 100644 --- a/src/include/pg_version_compat.h +++ b/src/include/pg_version_compat.h @@ -60,6 +60,16 @@ typedef int ObjectClass; #define Anum_pg_collation_colliculocale Anum_pg_collation_colllocale #define Anum_pg_database_daticulocale Anum_pg_database_datlocale +#include "commands/tablecmds.h" + +static inline void +RangeVarCallbackOwnsTable(const RangeVar *relation, + Oid relId, Oid oldRelId, void *arg) +{ + return RangeVarCallbackMaintainsTable(relation, relId, oldRelId, arg); +} + + #endif #if PG_VERSION_NUM >= PG_VERSION_16