Modify pg_stat_get_activity to build a tuplestore

Stephen Frost <sfrost@snowman.net>

Commit: f91feba8776eb66008cdb73b3a8c0c7c08cc54d9
Author: Stephen Frost <sfrost@snowman.net>
Date: 2015-05-08T23:25:30Z
Releases: 9.5.0
Modify pg_stat_get_activity to build a tuplestore

This updates pg_stat_get_activity() to build a tuplestore for its
results instead of using the old-style multiple-call method.  This
simplifies the function, though that wasn't the primary motivation for
the change, which is that we may turn it into a helper function which
can filter the results (or not) much more easily.

Files

PathChange+/−
src/backend/utils/adt/pgstatfuncs.c modified +67 −127