]> granicus.if.org Git - postgresql/commitdiff
DropTableSpace forgot to remove dependency on tablespace's owner.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Aug 2005 01:08:47 +0000 (01:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 30 Aug 2005 01:08:47 +0000 (01:08 +0000)
Per report from Jaime Casanova.

src/backend/commands/tablespace.c

index 06c939c2d5c79b5b34e2df66099cd8f3c61024fa..4bf2a4777f326497ca0bc50df013ebac5bcbb408 100644 (file)
@@ -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 $
  *
  *-------------------------------------------------------------------------
  */
@@ -446,6 +446,11 @@ DropTableSpace(DropTableSpaceStmt *stmt)
 
        heap_endscan(scandesc);
 
+       /*
+        * Remove dependency on owner.
+        */
+       deleteSharedDependencyRecordsFor(TableSpaceRelationId, tablespaceoid);
+
        /*
         * Try to remove the physical infrastructure
         */