File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.110 2000/11/12 00:36:56 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.111 2000/11/14 01:57:30 inoue Exp $
12
12
*
13
13
* NOTES
14
14
* The PerformAddAttribute() code, like most of the relation
@@ -1447,14 +1447,13 @@ AlterTableOwner(const char *relationName, const char *newOwnerName)
1447
1447
elog (ERROR , "ALTER TABLE: user \"%s\" not found" , newOwnerName );
1448
1448
1449
1449
newOwnerSysid = ((Form_pg_shadow ) GETSTRUCT (tuple ))-> usesysid ;
1450
- heap_freetuple (tuple );
1451
1450
1452
1451
/*
1453
1452
* find the table's entry in pg_class and lock it for writing
1454
1453
*/
1455
1454
class_rel = heap_openr (RelationRelationName , RowExclusiveLock );
1456
1455
1457
- tuple = SearchSysCacheTuple (RELNAME , PointerGetDatum (relationName ),
1456
+ tuple = SearchSysCacheTupleCopy (RELNAME , PointerGetDatum (relationName ),
1458
1457
0 , 0 , 0 );
1459
1458
if (!HeapTupleIsValid (tuple ))
1460
1459
elog (ERROR , "ALTER TABLE: relation \"%s\" not found" ,
You can’t perform that action at this time.
0 commit comments