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

Commit2187059

Browse files
committed
Touch postmaster log file every hour, rather than every 10 minutes, to
prevent complaints from laptop users who don't like their hard drivesstarting up every 10 minutes.
1 parent2104f9a commit2187059

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.447 2005/03/18 03:48:49 tgl Exp $
40+
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.448 2005/03/24 05:19:05 momjian Exp $
4141
*
4242
* NOTES
4343
*
@@ -1246,12 +1246,12 @@ ServerLoop(void)
12461246
PgStatPID=pgstat_start();
12471247

12481248
/*
1249-
* Touch the socket and lock file at least everyten minutes, to
1249+
* Touch the socket and lock file at least everyhour, to
12501250
* ensure that they are not removed by overzealous /tmp-cleaning
12511251
* tasks.
12521252
*/
12531253
now=time(NULL);
1254-
if (now-last_touch_time >=10*60)
1254+
if (now-last_touch_time >=60*60)
12551255
{
12561256
TouchSocketFile();
12571257
TouchSocketLockFile();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp