From c55c613e44e1c985dbf2f7677d30a3a5a44d6fb3 Mon Sep 17 00:00:00 2001 From: Josh Kupershmidt Date: Tue, 23 Apr 2013 21:32:30 -0400 Subject: [PATCH] Update RENAME_REL macro to work with 9.3. We now need to pass the "is_internal" boolean to this function; for our purposes it should be acceptable to always pass true. --- lib/repack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/repack.c b/lib/repack.c index 1bfec43..7ab219f 100644 --- a/lib/repack.c +++ b/lib/repack.c @@ -90,8 +90,10 @@ static void RenameRelationInternal(Oid myrelid, const char *newrelname, Oid name */ #if PG_VERSION_NUM < 90200 #define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, PG_TOAST_NAMESPACE); -#else +#elif PG_VERSION_NUM < 90300 #define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname); +#else +#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, true); #endif #ifdef REPACK_VERSION