forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
101 lines
8.8 KiB
HTML
101 lines
8.8 KiB
HTML
<a name="EN-US_TOPIC_0000001233883329"></a><a name="EN-US_TOPIC_0000001233883329"></a>
|
|
|
|
<h1 class="topictitle1">PG_STAT_BGWRITER</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233883329__en-us_topic_0059778449_p39295200418"><strong id="EN-US_TOPIC_0000001233883329__b84235270620334">PG_STAT_BGWRITER</strong> displays statistics about the background writer process's activity.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233883329__tb1655c061465480b89adc9d701ac4c2c" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_BGWRITER columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233883329__rd6993a94096047139d4f7bd3db570988"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233883329__ab8bf4d6312ed4ca5bf9342abb01273cf"><strong id="EN-US_TOPIC_0000001233883329__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001233883329__ad8f5fbf88c694899ab2b2e7d6e3fa6e6">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233883329__a08a7d269470849788a8d1cabe0b91aa0">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233883329__r4f52f87c01c3473fb42f4db0cf883e39"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a8ffaf2a0050f4482b90433c1f9194393">checkpoints_timed</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__afa74ab87bd56492fb36bbf4927048c88">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a3904583e9fdf4b3bb79773acefff5f02">Number of scheduled checkpoints that have been performed</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__rabd874d596b3466897a52ef02a8f64c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a012b1070665e4e678e7d60991a4d7691">checkpoints_req</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__a5c8f92211a06421782e97d2d25949326">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a78e04ccce7e343fc9e792466d0a98980">Number of requested checkpoints that have been performed</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__rc1863fecca45431da5a3e0727cd8358a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a3d10460d62154b26a30f4fd1504bd44b">checkpoint_write_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__af99ece4d96464eb7a9d2723109fbbb6a">double precision</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a7b794f9f96f64d41a9c9a2eae511106b">Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk, in milliseconds</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__re524421a1f7242c79f1ec14fee4c34aa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a046c9ee7d33a4181ba6b0ee75ebba1e8">checkpoint_sync_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__ac692d944b6054516b4232af0c57b37ee">double precision</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__af2ba882463d94b109c61684de307624d">Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk, in milliseconds</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__rce6abb3a22314cdda7a3461adaa48ef9"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__ac3c75f2be33c4f3bab611ecc76d1f5b1">buffers_checkpoint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__a17da57d631d54b1e8e0ff47d07c5690e">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a028b177e95954a20a34d73c5fc8dbece">Number of buffers written during checkpoints</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__r18ce06487fb348118951e6a2b2602a5e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a9bdf67dc3fd34824bf140388924d661f">buffers_clean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__aad43428e928947d4a3068dfebce9becb">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a704ed87a10e44215ba94b220081c175e">Number of buffers written by the background writer</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__r4448c21bdcf14d988b4302fa59c5af36"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a74334a9ba0d4451daf5b6b1b257fcf51">maxwritten_clean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__a46342e52c8e4484a9769dc264441524a">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__aa74cc0c8c75a426c82a3a90e829e63e4">Number of times the background writer stopped a cleaning scan because it had written too many buffers</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__r26ccc1151938474d9f85af0948dd4b91"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a7302d4a29f99427f880c824b260b24da">buffers_backend</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__afb10104a596543a88b7190108e57cb55">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__p8659105272814">Number of buffers written directly by a backend</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__rbc8a769a7d3941c9902caf0b8ae3bc64"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__afbcb70fef9124c7d9c5e6577c0846647">buffers_backend_fsync</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__a73166f5ccd9b4176b37c0c1adbaaf4e2">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__ae8ce54b655f84e12997807dfd181691d">Number of times that a backend has to execute <strong id="EN-US_TOPIC_0000001233883329__b0226162817508">fsync</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__r47b73db014d54492af59fd1280e6bd7e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a961aa18d14474ba6ab3076ef166ec0e4">buffers_alloc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__a3b2927908bcf41a681ff2986b2557646">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__a1db902d9f8214ee19eef5aa360ce81ed">Number of buffers allocated</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233883329__rbcfbbcfd57fa4986a9ac01f089e68dde"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233883329__a35815a578bc94c9c8f4f89a587c7adc6">stats_reset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233883329__abed77aea70b9464da868d1fa1d7c1b7a">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233883329__af37743f11db341e588da1a7a31813b0e">Time at which these statistics were reset</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|