Save pg_stat_statements statistics file into $PGDATA/pg_stat directory at shutdown.
authorFujii Masao <fujii@postgresql.org>
Wed, 4 Jun 2014 03:09:45 +0000 (12:09 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 4 Jun 2014 03:09:45 +0000 (12:09 +0900)
commit654e8e444749f053c3bf3fd543d10deb6aa6dd09
tree87c57a19d176372a374212294a524092b511bcf6
parent55fb759ab3e7543a6be72a35e6b6961455c5b393
Save pg_stat_statements statistics file into $PGDATA/pg_stat directory at shutdown.

187492b6c2e8cafc5b39063ca3b67846e8155d24 changed pgstat.c so that
the stats files were saved into $PGDATA/pg_stat directory when the server
was shutdowned. But it accidentally forgot to change the location of
pg_stat_statements permanent stats file. This commit fixes pg_stat_statements
so that its stats file is also saved into $PGDATA/pg_stat at shutdown.

Since this fix changes the file layout, we don't back-patch it to 9.3
where this oversight was introduced.
contrib/pg_stat_statements/pg_stat_statements.c
src/backend/postmaster/pgstat.c
src/include/pgstat.h