pgsql: Split pgstat file in smaller pieces

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Split pgstat file in smaller pieces
Дата
Msg-id E1U7Y51-0005VD-Ox@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add ALTER ROLE ALL SET command
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Move ExceptionalCondition back to postgres.h