|
14 | 14 | * Copyright (c) 2008-2009, PostgreSQL Global Development Group
|
15 | 15 | *
|
16 | 16 | * IDENTIFICATION
|
17 |
| - * $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.4 2009/07/2703:34:40 tgl Exp $ |
| 17 | + * $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.5 2009/07/2704:09:55 tgl Exp $ |
18 | 18 | *
|
19 | 19 | *-------------------------------------------------------------------------
|
20 | 20 | */
|
@@ -327,14 +327,16 @@ pgss_shmem_startup(void)
|
327 | 327 | on_shmem_exit(pgss_shmem_shutdown, (Datum)0);
|
328 | 328 |
|
329 | 329 | /*
|
330 |
| - * Attempt to load old statistics from the dump file. |
331 |
| - * |
332 |
| - * Note: we don't bother with locks here, because there should be no other |
333 |
| - * processes running when this is called. |
| 330 | + * Attempt to load old statistics from the dump file, if this is the |
| 331 | + * first time through and we weren't told not to. |
334 | 332 | */
|
335 | 333 | if (found|| !pgss_save)
|
336 | 334 | return;
|
337 | 335 |
|
| 336 | +/* |
| 337 | + * Note: we don't bother with locks here, because there should be no other |
| 338 | + * processes running when this code is reached. |
| 339 | + */ |
338 | 340 | file=AllocateFile(PGSS_DUMP_FILE,PG_BINARY_R);
|
339 | 341 | if (file==NULL)
|
340 | 342 | {
|
|