|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.30 1999/02/13 23:15:05 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.31 1999/03/15 14:07:44 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -125,16 +125,15 @@ destroydb(char *dbname)
|
125 | 125 | "delete from pg_database where pg_database.oid = \'%d\'::oid",db_id);
|
126 | 126 | pg_exec_query(buf);
|
127 | 127 |
|
| 128 | +/* drop pages for this database that are in the shared buffer cache */ |
| 129 | +DropBuffers(db_id); |
| 130 | + |
128 | 131 | /*
|
129 | 132 | * remove the data directory. If the DELETE above failed, this will
|
130 | 133 | * not be reached
|
131 | 134 | */
|
132 |
| - |
133 | 135 | snprintf(buf,512,"rm -r %s",path);
|
134 | 136 | system(buf);
|
135 |
| - |
136 |
| -/* drop pages for this database that are in the shared buffer cache */ |
137 |
| -DropBuffers(db_id); |
138 | 137 | }
|
139 | 138 |
|
140 | 139 | staticHeapTuple
|
|