Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a305b7

Browse files
committed
Drop buffers before destroying database files.
1 parent25541a5 commit1a305b7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/backend/commands/dbcommands.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* 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 $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -125,16 +125,15 @@ destroydb(char *dbname)
125125
"delete from pg_database where pg_database.oid = \'%d\'::oid",db_id);
126126
pg_exec_query(buf);
127127

128+
/* drop pages for this database that are in the shared buffer cache */
129+
DropBuffers(db_id);
130+
128131
/*
129132
* remove the data directory. If the DELETE above failed, this will
130133
* not be reached
131134
*/
132-
133135
snprintf(buf,512,"rm -r %s",path);
134136
system(buf);
135-
136-
/* drop pages for this database that are in the shared buffer cache */
137-
DropBuffers(db_id);
138137
}
139138

140139
staticHeapTuple

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp