From: Michael Paquier Date: Wed, 22 Mar 2023 09:32:11 +0000 (+0900) Subject: doc: Add description of some missing monitoring functions X-Git-Tag: REL_11_20~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e09fb8a7588d89c9654b21e81d181ef9abf6e77c;p=thirdparty%2Fpostgresql.git doc: Add description of some missing monitoring functions This commit adds some documentation about two monitoring functions: - pg_stat_get_xact_blocks_fetched() - pg_stat_get_xact_blocks_hit() The description of these functions has been removed in ddfc2d9, later simplified by 5f2b089, assuming that all the functions whose descriptions were removed are used in system views. Unfortunately, some of them were are not used in any system views, so they lacked documentation. This gap exists in the docs for a long time, so backpatch all the way down. Reported-by: Michael Paquier Author: Bertrand Drouvot Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/ZBeeH5UoNkTPrwHO@paquier.xyz Backpatch-through: 11 --- diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index d8b20844a97..194b63dddbf 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -3142,6 +3142,24 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i Discard the current statistics snapshot + + + pg_stat_get_xact_blocks_fetched(oid)pg_stat_get_xact_blocks_fetched + bigint + + Returns the number of buffers fetched for table or index, in the current + transaction. + + + + + pg_stat_get_xact_blocks_hit(oid)pg_stat_get_xact_blocks_hit + bigint + + Returns the number of buffer hits for table or index, in the current + transaction. + + pg_stat_reset()pg_stat_reset