Re: Is it useful to record whether plans are generic or custom? - Mailing list pgsql-hackers

From legrand legrand
Subject Re: Is it useful to record whether plans are generic or custom?
Date
Msg-id 1589390892966-0.post@n3.nabble.com
Whole thread Raw
In response to Is it useful to record whether plans are generic or custom?  (Atsushi Torikoshi <atorik@gmail.com>)
Responses Re: Is it useful to record whether plans are generic or custom?  (Atsushi Torikoshi <atorik@gmail.com>)
List pgsql-hackers
Hello,

yes this can be usefull, under the condition of differentiating all the
counters
for a queryid using a generic plan and the one using a custom one.

For me one way to do that is adding a generic_plan column to 
pg_stat_statements key, someting like:
- userid,
- dbid,
- queryid,
- generic_plan

I don't know if generic/custom plan types are available during planning
and/or 
execution hooks ...

Regards
PAscal




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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SLRU statistics
Next
From: Tom Lane
Date:
Subject: Re: SLRU statistics