pgsql: Split pgstat file in smaller pieces - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Split pgstat file in smaller pieces
Date
Msg-id E1U7Y51-0005VD-Ox@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Split pgstat file in smaller pieces

We now write one file per database and one global file, instead of
having the whole thing in a single huge file.  This reduces the I/O that
must be done when partial data is required -- which is all the time,
because each process only needs information on its own database anyway.
Also, the autovacuum launcher does not need data about tables and
functions in each database; having the global stats for all DBs is
enough.

Catalog version bumped because we have a new subdir under PGDATA.

Author: Tomas Vondra.  Some rework by Álvaro
Testing by Jeff Janes
Other discussion by Heikki Linnakangas, Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/187492b6c2e8cafc5b39063ca3b67846e8155d24

Modified Files
--------------
src/backend/postmaster/pgstat.c  |  807 +++++++++++++++++++++++++++-----------
src/backend/utils/misc/guc.c     |   17 +-
src/bin/initdb/initdb.c          |    1 +
src/include/catalog/catversion.h |    2 +-
src/include/pgstat.h             |    5 +-
5 files changed, 593 insertions(+), 239 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Add ALTER ROLE ALL SET command
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Move ExceptionalCondition back to postgres.h