File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.16 2002/05/21 22:05:54 tgl Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.17 2002/06/17 14:31:32 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -2747,7 +2747,8 @@ AlterTableOwner(Oid relationOid, int32 newOwnerSysId)
27472747 Form_pg_class tuple_class ;
27482748
27492749 /* Get exclusive lock till end of transaction on the target table */
2750- target_rel = heap_open (relationOid , AccessExclusiveLock );
2750+ /* Use relation_open here so that we work on indexes... */
2751+ target_rel = relation_open (relationOid , AccessExclusiveLock );
27512752
27522753 /* Get its pg_class tuple, too */
27532754 class_rel = heap_openr (RelationRelationName , RowExclusiveLock );
@@ -2807,7 +2808,7 @@ AlterTableOwner(Oid relationOid, int32 newOwnerSysId)
28072808
28082809 heap_freetuple (tuple );
28092810 heap_close (class_rel , RowExclusiveLock );
2810- heap_close (target_rel , NoLock );
2811+ relation_close (target_rel , NoLock );
28112812}
28122813
28132814static void
You can’t perform that action at this time.
0 commit comments