diff options
author | Tom Lane | 2005-08-30 01:08:47 +0000 |
---|---|---|
committer | Tom Lane | 2005-08-30 01:08:47 +0000 |
commit | 13065c7174ea6e60bbf619f21b0fa382718acaf0 (patch) | |
tree | 5c00fbf26e1bf9f85378b5ea90c998066e980d68 /src/backend/commands/tablespace.c | |
parent | 139b1f61ce78ca43c020d775e7bf4497f5985462 (diff) |
DropTableSpace forgot to remove dependency on tablespace's owner.
Per report from Jaime Casanova.
Diffstat (limited to 'src/backend/commands/tablespace.c')
-rw-r--r-- | src/backend/commands/tablespace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 06c939c2d5c..4bf2a4777f3 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.26 2005/07/14 21:46:29 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.27 2005/08/30 01:08:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -447,6 +447,11 @@ DropTableSpace(DropTableSpaceStmt *stmt) heap_endscan(scandesc); /* + * Remove dependency on owner. + */ + deleteSharedDependencyRecordsFor(TableSpaceRelationId, tablespaceoid); + + /* * Try to remove the physical infrastructure */ if (!remove_tablespace_directories(tablespaceoid, false)) |