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.
This commit is contained in:
Josh Kupershmidt 2013-04-23 21:32:30 -04:00
parent e9339f44ea
commit c55c613e44

View File

@ -90,8 +90,10 @@ static void RenameRelationInternal(Oid myrelid, const char *newrelname, Oid name
*/ */
#if PG_VERSION_NUM < 90200 #if PG_VERSION_NUM < 90200
#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, PG_TOAST_NAMESPACE); #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); #define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname);
#else
#define RENAME_REL(relid, newrelname) RenameRelationInternal(relid, newrelname, true);
#endif #endif
#ifdef REPACK_VERSION #ifdef REPACK_VERSION