Re: Configurable Additional Stats - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Configurable Additional Stats
Date
Msg-id 12987.1183129361@sss.pgh.pa.us
Whole thread Raw
In response to Configurable Additional Stats  ("Simon Riggs" <simon@2ndquadrant.com>)
Responses Re: Configurable Additional Stats  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump and minor versions
Next
From: Tom Lane
Date:
Subject: Re: SetBufferCommitInfoNeedsSave and race conditions