|
15 | 15 | *
|
16 | 16 | *
|
17 | 17 | * IDENTIFICATION
|
18 |
| - * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.171 2005/08/22 17:38:20 tgl Exp $ |
| 18 | + * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.172 2005/10/10 20:02:20 tgl Exp $ |
19 | 19 | *
|
20 | 20 | *-------------------------------------------------------------------------
|
21 | 21 | */
|
@@ -646,6 +646,11 @@ dropdb(const char *dbname)
|
646 | 646 | */
|
647 | 647 | DeleteComments(db_id,DatabaseRelationId,0);
|
648 | 648 |
|
| 649 | +/* |
| 650 | + * Remove shared dependency references for the database. |
| 651 | + */ |
| 652 | +dropDatabaseDependencies(db_id); |
| 653 | + |
649 | 654 | /*
|
650 | 655 | * Drop pages for this database that are in the shared buffer cache.
|
651 | 656 | * This is important to ensure that no remaining backend tries to
|
@@ -674,11 +679,6 @@ dropdb(const char *dbname)
|
674 | 679 | /* Close pg_database, but keep exclusive lock till commit */
|
675 | 680 | heap_close(pgdbrel,NoLock);
|
676 | 681 |
|
677 |
| -/* |
678 |
| - * Remove shared dependency references for the database. |
679 |
| - */ |
680 |
| -dropDatabaseDependencies(db_id); |
681 |
| - |
682 | 682 | /*
|
683 | 683 | * Set flag to update flat database file at commit.
|
684 | 684 | */
|
|