Make the pg_stat_activity view call a SRF (pg_stat_get_activity())

Magnus Hagander <magnus@hagander.net>

Commit: 0423de4d30850327e3c6860377b82a77cf45a1d2
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-05-07T14:41:56Z
Releases: 8.4.0
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.

Files