Skip to content

Commit c55c613

Browse files
committed
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.
1 parent e9339f4 commit c55c613

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/repack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ static void RenameRelationInternal(Oid myrelid, const char *newrelname, Oid name
9090
*/
9191
#if PG_VERSION_NUM < 90200
9292
#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, PG_TOAST_NAMESPACE);
93-
#else
93+
#elif PG_VERSION_NUM < 90300
9494
#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname);
95+
#else
96+
#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, true);
9597
#endif
9698

9799
#ifdef REPACK_VERSION

0 commit comments

Comments
 (0)