diff options
author | Tom Lane | 2009-07-27 03:34:40 +0000 |
---|---|---|
committer | Tom Lane | 2009-07-27 03:34:40 +0000 |
commit | 98f3399ab88d312926c94472f645bd5eee27cb0a (patch) | |
tree | 6089ca77d2eeacaed0d0a4d31c76f8150fb9d249 | |
parent | a04e3e9ee8cd874442ec5dff945385ee2ad7a525 (diff) |
Fix pg_stat_statements for EXEC_BACKEND case.
We should not try to load old statistics when re-attaching to existing
shared memory. Per bug #4941.
Itagaki Takahiro
-rw-r--r-- | contrib/pg_stat_statements/pg_stat_statements.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index d61d91ae73..31d1840364 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -332,7 +332,7 @@ pgss_shmem_startup(void) * Note: we don't bother with locks here, because there should be no other * processes running when this is called. */ - if (!pgss_save) + if (found || !pgss_save) return; file = AllocateFile(PGSS_DUMP_FILE, PG_BINARY_R); |