projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e66f9
)
Touch postmaster log file every hour, rather than every 10 minutes, to
author
Bruce Momjian
<bruce@momjian.us>
Thu, 24 Mar 2005 05:19:05 +0000
(
05:19
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Thu, 24 Mar 2005 05:19:05 +0000
(
05:19
+0000)
prevent complaints from laptop users who don't like their hard drives
starting up every 10 minutes.
src/backend/postmaster/postmaster.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/postmaster.c
b/src/backend/postmaster/postmaster.c
index 420c7a75a6eabfc1217147be0a597fb6d815bab0..b3bd46f1608fad63868169f1faf936ef552b0f9a 100644
(file)
--- a/
src/backend/postmaster/postmaster.c
+++ b/
src/backend/postmaster/postmaster.c
@@
-1246,12
+1246,12
@@
ServerLoop(void)
PgStatPID = pgstat_start();
/*
- * Touch the socket and lock file at least every
ten minutes
, to
+ * Touch the socket and lock file at least every
hour
, to
* ensure that they are not removed by overzealous /tmp-cleaning
* tasks.
*/
now = time(NULL);
- if (now - last_touch_time >=
1
0 * 60)
+ if (now - last_touch_time >=
6
0 * 60)
{
TouchSocketFile();
TouchSocketLockFile();