"Simon Riggs" <simon(at)2ndquadrant(dot)com> writes:
> if (stats_hook)
> (* stats_hook)(pgStatTabList);
> Any objections to sliding this in?
Only that it's useless. What are you going to do in such a hook?
Not send more info to the stats collector, because the message format
is predetermined. AFAICS, if you want to extend the set of stats
collected, you need much more invasive changes than this, and are
really going to have to resort to changing the server source code.
regards, tom lane