Re: Is it useful to record whether plans are generic or custom?

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Is it useful to record whether plans are generic or custom?
Date: 2020-09-28 17:39:39
Message-ID: 1601314779213-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Atsushi,

+1: Your proposal is a good answer for time based performance analysis
(even if parsing durationor blks are not differentiated) .

As it makes pgss number of columns wilder, may be an other solution
would be to create a pg_stat_statements_xxx view with the same key
as pgss (dbid,userid,queryid) and all thoses new counters.

And last solution would be to display only generic counters,
because in most cases (and per default) executions are custom ones
(and generic counters = 0).
if not (when generic counters != 0), customs ones could be deducted from
total_exec_time - total_generic_time, calls - generic_calls.

Good luck for this feature development
Regards
PAscal

--
Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2020-09-28 18:12:50 Re: BLOB / CLOB support in PostgreSQL
Previous Message Tom Lane 2020-09-28 17:01:36 Re: Report error position in partition bound check