Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 13065c7

Browse files
committed
DropTableSpace forgot to remove dependency on tablespace's owner.
Per report from Jaime Casanova.
1 parent 139b1f6 commit 13065c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/commands/tablespace.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.26 2005/07/14 21:46:29 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.27 2005/08/30 01:08:47 tgl Exp $
4141
*
4242
*-------------------------------------------------------------------------
4343
*/
@@ -446,6 +446,11 @@ DropTableSpace(DropTableSpaceStmt *stmt)
446446

447447
heap_endscan(scandesc);
448448

449+
/*
450+
* Remove dependency on owner.
451+
*/
452+
deleteSharedDependencyRecordsFor(TableSpaceRelationId, tablespaceoid);
453+
449454
/*
450455
* Try to remove the physical infrastructure
451456
*/

0 commit comments

Comments
 (0)