Re: Planning counters in pg_stat_statements (using pgss_store) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Planning counters in pg_stat_statements (using pgss_store)
Date
Msg-id 6766.1627253213@sss.pgh.pa.us
Whole thread Raw
In response to Re: Planning counters in pg_stat_statements (using pgss_store)  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> On 7/25/21 12:03 PM, Tom Lane wrote:
>> So AFAICS this test is inherently unstable and there is no code bug
>> to be fixed.  We could drop the "plans" column from this query, or
>> print something approximate like "plans > 0 AND plans <= calls".
>> Thoughts?

> Is that likely to tell us anything very useful?

The variant suggested downthread ("plans >= 2 AND plans <= calls" for the
PREPARE entry only) seems like it's still reasonably useful.  At least it
can verify that a replan has occurred and been counted.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Planning counters in pg_stat_statements (using pgss_store)
Next
From: Peter Smith
Date:
Subject: Re: logical replication empty transactions