pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_stat_sql_plans ALPHA released
2+ messages / 2 participants
[nested] [flat]
* pg_stat_sql_plans ALPHA released
@ 2018-12-19 15:36 PAscal l <legrand_legrand2@outlook.fr>
0 siblings, 1 reply; 2+ messages in thread
From: PAscal l @ 2018-12-19 15:36 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
PG_STAT_SQL_PLANS is an extension mixing
pg_stat_statements and auto_explain with a planid.
It is implementing many Oracle like features:
- queryid is based on normalized sql text (no jumbling),
- stored query text isn't normalized,
- a text normalization SQL function is provided,
- sql not finished in success (cancelled, timeout, errors) is tracked,
- planid is based on normalized explain plan text,
- explain plan text is saved in logs (as auto_explain do)
but only one time per queryid/planid,
- first_call, last_call informations are kept for each entry,
- provides a SQL function retrieving queryid for a pid
permitting to join pg_stat_activity with pg_stat_sql_plan
- includes specific wait events for planing and extension activities
Some ideas where found in other postgres extensions like pg_store_plans,
pg_stat_plans, ... and patches from pgsql-hackers mailing list.
See https://github.com/legrandlegrand/pg_stat_sql_plans
Feedbacks are welcome
Regards
PAscal
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_stat_sql_plans ALPHA released
@ 2020-06-01 08:36 legrand legrand <legrand_legrand@hotmail.com>
parent: PAscal l <legrand_legrand2@outlook.fr>
0 siblings, 0 replies; 2+ messages in thread
From: legrand legrand @ 2020-06-01 08:36 UTC (permalink / raw)
To: pgsql-general
A new version of pg_stat_sql_plans (version 0.2) has been released.
Main changes are:
- planid is build at planning time, making it reusable by cached plans,
- expose current queryid, planid per pid in pg_stat_activity,
- planning counters are now calculated per (queryid,planid),
- includes a specific 'minimal' explain plan, for performances,
- ...
It needs PG13 (as it is using new planner hook query_string) and is
still available at https://github.com/legrandlegrand/pg_stat_sql_plans
Regards
PAscal
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-06-01 08:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 15:36 pg_stat_sql_plans ALPHA released PAscal l <legrand_legrand2@outlook.fr>
2020-06-01 08:36 ` legrand legrand <legrand_legrand@hotmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox