mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Expose some information about backend subxact status.
A new function pg_stat_get_backend_subxact() can be used to get information about the number of subtransactions in the cache of a particular backend and whether that cache has overflowed. This can be useful for tracking down performance problems that can result from overflowed snapshots. Dilip Kumar, reviewed by Zhihong Yu, Nikolay Samokhvalov, Justin Pryzby, Nathan Bossart, Ashutosh Sharma, Julien Rouhaud. Additional design comments from Andres Freund, Tom Lane, Bruce Momjian, and David G. Johnston. Discussion: http://postgr.es/m/CAFiTN-ut0uwkRJDQJeDPXpVyTWD46m3gt3JDToE02hTfONEN=Q@mail.gmail.com
This commit is contained in:
@ -5671,6 +5671,24 @@ FROM pg_stat_get_backend_idset() AS backendid;
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="func_table_entry"><para role="func_signature">
|
||||
<indexterm>
|
||||
<primary>pg_stat_get_backend_subxact</primary>
|
||||
</indexterm>
|
||||
<function>pg_stat_get_backend_subxact</function> ( <type>integer</type> )
|
||||
<returnvalue>record</returnvalue>
|
||||
</para>
|
||||
<para>
|
||||
Returns a record of information about the subtransactions of the
|
||||
backend with the specified ID.
|
||||
The fields returned are <parameter>subxact_count</parameter>, which
|
||||
is the number of subtransactions in the backend's subtransaction cache,
|
||||
and <parameter>subxact_overflow</parameter>, which indicates whether
|
||||
the backend's subtransaction cache is overflowed or not.
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="func_table_entry"><para role="func_signature">
|
||||
<indexterm>
|
||||
|
Reference in New Issue
Block a user