pgsql: Track temporary file count and size in pg_stat_database

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Track temporary file count and size in pg_stat_database
Date: 2012-01-26 13:44:18
Message-ID: E1RqPcg-0005fA-15@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Track temporary file count and size in pg_stat_database

Add counters for number and size of temporary files used
for spill-to-disk queries for each database to the
pg_stat_database view.

Tomas Vondra, review by Magnus Hagander

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bc3347484a7bf9eddb98e4352d84599cae9a31c6

Modified Files
--------------
doc/src/sgml/monitoring.sgml | 25 ++++++++++++++++-
src/backend/catalog/system_views.sql | 2 +
src/backend/postmaster/pgstat.c | 50 ++++++++++++++++++++++++++++++++++
src/backend/storage/file/fd.c | 36 +++++++++++-------------
src/backend/utils/adt/pgstatfuncs.c | 33 ++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 4 +++
src/include/pgstat.h | 19 ++++++++++++-
src/test/regress/expected/rules.out | 2 +-
9 files changed, 149 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2012-01-26 14:40:13 pgsql: Classify DROP operations by whether or not they are user-initiat
Previous Message Robert Haas 2012-01-26 13:23:33 pgsql: Damage control for yesterday's CheckIndexCompatible changes.