mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pg_stat_statements: Add local_blk_{read|write}_time
This commit adds to pg_stat_statements the two new fields for local buffers introduced by295c36c0c1
, adding the time spent to read and write these blocks. These are similar to what is done for temp and shared blocks. This information available only if track_io_timing is enabled. Like for5a3423ad8e
, no version bump is required in the module. Author: Nazir Bilal Yavuz Reviewed-by: Robert Haas, Melanie Plageman Discussion: https://postgr.es/m/CAN55FZ19Ss279mZuqGbuUNxka0iPbLgYuOQXqAKewrjNrp27VA@mail.gmail.com
This commit is contained in:
@ -353,6 +353,26 @@
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>local_blk_read_time</structfield> <type>double precision</type>
|
||||
</para>
|
||||
<para>
|
||||
Total time the statement spent reading local blocks, in milliseconds
|
||||
(if <xref linkend="guc-track-io-timing"/> is enabled, otherwise zero)
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>local_blk_write_time</structfield> <type>double precision</type>
|
||||
</para>
|
||||
<para>
|
||||
Total time the statement spent writing local blocks, in milliseconds
|
||||
(if <xref linkend="guc-track-io-timing"/> is enabled, otherwise zero)
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>temp_blk_read_time</structfield> <type>double precision</type>
|
||||
|
Reference in New Issue
Block a user