]> granicus.if.org Git - postgresql/commit
Take the statistics collector out of the loop for monitoring backends'
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Jun 2006 01:51:22 +0000 (01:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Jun 2006 01:51:22 +0000 (01:51 +0000)
commitb13c9686d08411a284afeb881b49d7955761d8cb
treeec956d8cc1a3176b73b064d711ce5ccda547e23b
parent6075feed40804a963f9a7c041e7d157a86cc758d
Take the statistics collector out of the loop for monitoring backends'
current commands; instead, store current-status information in shared
memory.  This substantially reduces the overhead of stats_command_string
and also ensures that pg_stat_activity is fully up to date at all times.
Per my recent proposal.
doc/src/sgml/config.sgml
doc/src/sgml/monitoring.sgml
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/procarray.c
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/pgstat.h
src/include/storage/procarray.h