pgsql: Modify pg_stat_get_activity to build a tuplestore

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Modify pg_stat_get_activity to build a tuplestore
Date: 2015-05-08 23:25:42
Message-ID: E1YqreI-0005uI-S8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

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

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 194 ++++++++++++-----------------------
1 file changed, 67 insertions(+), 127 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-05-08 23:40:45 pgsql: Recommend include_realm=1 in docs
Previous Message Stephen Frost 2015-05-08 23:15:22 pgsql: Bump catversion for pg_file_settings