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

Commit13ea43a

Browse files
committed
Remove the correct pgstat file on DROP DATABASE
We were unlinking the permanent file, not the non-permanent one. Butsince the stat collector already unlinks all permanent files on startup,there was nothing for it to unlink. The non-permanent file remained inplace, and was copied to the permanent directory on shutdown, so ineffect no file was ever dropped.Backpatch to 9.3, where the issue was introduced by commit187492b.Before that, there were no per-database files and thus no file to dropon DROP DATABASE.Per report from Thom Brown.Author: Tomáš Vondra
1 parenta5363a6 commit13ea43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4650,7 +4650,7 @@ pgstat_recv_dropdb(PgStat_MsgDropdb *msg, int len)
46504650
{
46514651
charstatfile[MAXPGPATH];
46524652

4653-
get_dbstat_filename(true, false,dbid,statfile,MAXPGPATH);
4653+
get_dbstat_filename(false, false,dbid,statfile,MAXPGPATH);
46544654

46554655
elog(DEBUG2,"removing %s",statfile);
46564656
unlink(statfile);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp