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)
{