|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.150 2005/03/24 00:03:22 neilc Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.151 2005/03/25 18:04:34 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -5374,7 +5374,7 @@ change_owner_recurse_to_sequences(Oid relationOid, int32 newOwnerSysId)
|
5374 | 5374 | * SERIAL sequences are those having an internal dependency on one
|
5375 | 5375 | * of the table's columns (we don't care *which* column, exactly).
|
5376 | 5376 | */
|
5377 |
| -depRel=heap_openr(DependRelationName,RowExclusiveLock); |
| 5377 | +depRel=heap_openr(DependRelationName,AccessShareLock); |
5378 | 5378 |
|
5379 | 5379 | ScanKeyInit(&key[0],
|
5380 | 5380 | Anum_pg_depend_refclassid,
|
@@ -5420,6 +5420,8 @@ change_owner_recurse_to_sequences(Oid relationOid, int32 newOwnerSysId)
|
5420 | 5420 | }
|
5421 | 5421 |
|
5422 | 5422 | systable_endscan(scan);
|
| 5423 | + |
| 5424 | +relation_close(depRel,AccessShareLock); |
5423 | 5425 | }
|
5424 | 5426 |
|
5425 | 5427 | /*
|
|