pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Allow pg_stat_statements to track planning statistics.
2+ messages / 2 participants
[nested] [flat]

* pgsql: Allow pg_stat_statements to track planning statistics.
@ 2020-04-02 02:21  Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Fujii Masao @ 2020-04-02 02:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow pg_stat_statements to track planning statistics.

This commit makes pg_stat_statements support new GUC
pg_stat_statements.track_planning. If this option is enabled,
pg_stat_statements tracks the planning statistics of the statements,
e.g., the number of times the statement was planned, the total time
spent planning the statement, etc. This feature is useful to check
the statements that it takes a long time to plan. Previously since
pg_stat_statements tracked only the execution statistics, we could
not use that for the purpose.

The planning and execution statistics are stored at the end of
each phase separately. So there are not always one-to-one relationship
between them. For example, if the statement is successfully planned
but fails in the execution phase, only its planning statistics are stored.
This may cause the users to be able to see different pg_stat_statements
results from the previous version. To avoid this,
pg_stat_statements.track_planning needs to be disabled.

This commit bumps the version of pg_stat_statements to 1.8
since it changes the definition of pg_stat_statements function.

Author: Julien Rouhaud, Pascal Legrand, Thomas Munro, Fujii Masao
Reviewed-by: Sergei Kornilov, Tomas Vondra, Yoshikazu Imai, Haribabu Kommi, Tom Lane
Discussion: https://postgr.es/m/CAHGQGwFx_=DO-Gu-MfPW3VQ4qC7TfVdH2zHmvZfrGv6fQ3D-Tw@mail.gmail.com
Discussion: https://postgr.es/m/CAEepm=0e59Y_6Q_YXYCTHZkqOc6H2pJ54C_Xe=VFu50Aqqp_sA@mail.gmail.com
Discussion: https://postgr.es/m/DB6PR0301MB21352F6210E3B11934B0DCC790B00@DB6PR0301MB2135.eurprd03.prod.outlook.c...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/17e03282241c6ac58a714eb0c3b6a8018cf6167a

Modified Files
--------------
contrib/pg_stat_statements/Makefile                |   3 +-
.../expected/pg_stat_statements.out                | 231 +++++++++++------
.../pg_stat_statements--1.7--1.8.sql               |  55 ++++
contrib/pg_stat_statements/pg_stat_statements.c    | 284 ++++++++++++++++-----
.../pg_stat_statements/pg_stat_statements.control  |   4 +-
.../pg_stat_statements/sql/pg_stat_statements.sql  |  16 ++
doc/src/sgml/pgstatstatements.sgml                 | 232 +++++++++++------
src/tools/pgindent/typedefs.list                   |   1 +
8 files changed, 603 insertions(+), 223 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Allow pg_stat_statements to track WAL usage statistics.
@ 2020-04-05 02:07  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Amit Kapila @ 2020-04-05 02:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Allow pg_stat_statements to track WAL usage statistics.

This commit adds three new columns in pg_stat_statements output to
display WAL usage statistics added by commit df3b181499.

This commit doesn't bump the version of pg_stat_statements as the
same is done for this release in commit 17e0328224.

Author: Kirill Bychik and Julien Rouhaud
Reviewed-by: Julien Rouhaud, Fujii Masao, Dilip Kumar and Amit Kapila
Discussion: https://postgr.es/m/CAB-hujrP8ZfUkvL5OYETipQwA=e3n7oqHFU=4ZLxWS_Cza3kQQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b466bf5f2bea0c89fab54eef696bcfc7ecdafd7

Modified Files
--------------
.../expected/pg_stat_statements.out                | 39 +++++++++++++++
.../pg_stat_statements--1.7--1.8.sql               |  5 +-
contrib/pg_stat_statements/pg_stat_statements.c    | 55 ++++++++++++++++++++--
.../pg_stat_statements/sql/pg_stat_statements.sql  | 23 +++++++++
doc/src/sgml/pgstatstatements.sgml                 | 27 +++++++++++
5 files changed, 145 insertions(+), 4 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-04-05 02:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-04-02 02:21 pgsql: Allow pg_stat_statements to track planning statistics. Fujii Masao <fujii@postgresql.org>
2020-04-05 02:07 pgsql: Allow pg_stat_statements to track WAL usage statistics. Amit Kapila <akapila@postgresql.org>

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