diff options
author | Michael Paquier | 2024-10-08 23:30:45 +0000 |
---|---|---|
committer | Michael Paquier | 2024-10-08 23:30:45 +0000 |
commit | cf54a2c002544a4b7934deb44c895750aadb0a3c (patch) | |
tree | 5732146babb49b1fd76163570404e00e3a6f3bf4 /doc/src | |
parent | de3a2ea3b264a5625cda6d8968f75e9bfb4dbdcb (diff) |
pg_stat_statements: Add columns to track parallel worker activity
The view pg_stat_statements gains two columns:
- parallel_workers_to_launch, the number of parallel workers planned to
be launched.
- parallel_workers_launched, the number of parallel workers actually
launched.
The ratio of both columns offers hints that parallel workers are lacking
on a per-statement basis, requiring some tuning, in coordination with
"calls", the number of times a query is executed.
As of now, these numbers are tracked within Gather and GatherMerge
nodes. They could be extended to utilities that make use of parallel
workers (parallel btree and brin, VACUUM).
The module is bumped to 1.12.
Author: Guillaume Lelarge
Discussion: https://postgr.es/m/CAECtzeWtTGOK0UgKXdDGpfTVSa5bd_VbUt6K6xn8P7X+_dZqKw@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/pgstatstatements.sgml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/src/sgml/pgstatstatements.sgml b/doc/src/sgml/pgstatstatements.sgml index 9b0aff73b1e..501b468e9af 100644 --- a/doc/src/sgml/pgstatstatements.sgml +++ b/doc/src/sgml/pgstatstatements.sgml @@ -529,6 +529,24 @@ <row> <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>parallel_workers_to_launch</structfield> <type>bigint</type> + </para> + <para> + Number of parallel workers planned to be launched + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>parallel_workers_launched</structfield> <type>bigint</type> + </para> + <para> + Number of parallel workers actually launched + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> <structfield>stats_since</structfield> <type>timestamp with time zone</type> </para> <para> |