On 01/13/2014 09:06 PM, Stephen Frost wrote:
My thought, at least, was to always grab the planning time and then provide it for explain and/or explain analyze, and then for re-plan cases, indicate if a cached plan was returned, if a replan happened, and if a replan happened, what the old plan time and the new plan time was.
I like this solution due it is correctness and that all information is included. But I also think my original path was fine in how it in its simplicity solved the problem without adding any overhead in the non-EXPLAIN case. Either solution would be fine by me. If the consensus is that we want to always measure it I will look at implementing that instead.
-- Andreas Karlsson -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers