summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-07-27 04:09:55 +0000
committerTom Lane2009-07-27 04:09:55 +0000
commiteb9f071a04ae43cb1e7bd7c53bb3aeb2ad44e1ae (patch)
treedc4d5ce49505d0d7e5e8825fc7ed33bff48c32fd
parent98f3399ab88d312926c94472f645bd5eee27cb0a (diff)
Improve comment, per gripe from Alvaro.
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
index 31d1840364..4b97637a5a 100644
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
/*
- * Attempt to load old statistics from the dump file.
- *
- * Note: we don't bother with locks here, because there should be no other
- * processes running when this is called.
+ * Attempt to load old statistics from the dump file, if this is the
+ * first time through and we weren't told not to.
*/
if (found || !pgss_save)
return;
+ /*
+ * Note: we don't bother with locks here, because there should be no other
+ * processes running when this code is reached.
+ */
file = AllocateFile(PGSS_DUMP_FILE, PG_BINARY_R);
if (file == NULL)
{