File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.188 2008/08/25 15:11:00 mha Exp $ -->
1
+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.189 2008/08/25 18:55:43 mha Exp $ -->
2
2
3
3
<chapter Id="runtime-config">
4
4
<title>Server Configuration</title>
@@ -3419,8 +3419,8 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
3419
3419
<filename>pg_stat_tmp</filename>. Pointing this at a RAM based filesystem
3420
3420
will decrease physical I/O requirements and can lead to increased
3421
3421
performance. If this parameter is changed when the system is running,
3422
- the statistics functions might return no information until a new
3423
- file has been written, which typically happens twice per second .
3422
+ there is a small window of time until the new file has been written
3423
+ during which the statistics functions might return no information .
3424
3424
</para>
3425
3425
</listitem>
3426
3426
</varlistentry>
Original file line number Diff line number Diff line change 13
13
*
14
14
* Copyright (c) 2001-2008, PostgreSQL Global Development Group
15
15
*
16
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.180 2008/08/25 15:11:00 mha Exp $
16
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.181 2008/08/25 18:55:43 mha Exp $
17
17
* ----------
18
18
*/
19
19
#include "postgres.h"
@@ -2638,11 +2638,14 @@ PgstatCollectorMain(int argc, char *argv[])
2638
2638
2639
2639
/*
2640
2640
* Reload configuration if we got SIGHUP from the postmaster.
2641
+ * Also, signal a new write of the file, so we drop a new file as
2642
+ * soon as possible of the directory for it changes.
2641
2643
*/
2642
2644
if (got_SIGHUP )
2643
2645
{
2644
2646
ProcessConfigFile (PGC_SIGHUP );
2645
2647
got_SIGHUP = false;
2648
+ need_statwrite = true;
2646
2649
}
2647
2650
2648
2651
/*
You can’t perform that action at this time.
0 commit comments