Add stats functions and views to provide access to a transaction's own

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 46aa77c7bd256b3448cc420e02ff59d7cc0270c1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-08-08T16:27:06Z
Releases: 9.1.0
Add stats functions and views to provide access to a transaction's own
statistics counts.  These numbers are being accumulated but haven't yet been
transmitted to the collector (and won't be, until the transaction ends).
For some purposes, though, it's handy to be able to look at them.

Joel Jacobson, reviewed by Itagaki Takahiro

Files