Make the pg_stat_activity view call a SRF (pg_stat_get_activity())
authorMagnus Hagander <magnus@hagander.net>
Wed, 7 May 2008 14:41:56 +0000 (14:41 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 7 May 2008 14:41:56 +0000 (14:41 +0000)
commitc19a63ad4f7ed9d3be6e7eab8e19e47df8afe296
tree80456f4c94b21174e109cdad489e392a4be637e9
parentd99fe9a963584c04d81712387cbb8b8d96d7a353
Make the pg_stat_activity view call a SRF (pg_stat_get_activity())
instead of calling a bunch of individual functions.

This function can also be called directly, taking a PID as an argument, to
return only the data for a single PID.
doc/src/sgml/monitoring.sgml
src/backend/catalog/system_views.sql
src/backend/utils/adt/pgstatfuncs.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/rules.out