doc-exports/docs/dws/dev/dws_04_0760.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

101 lines
8.6 KiB
HTML

<a name="EN-US_TOPIC_0000001099134700"></a><a name="EN-US_TOPIC_0000001099134700"></a>
<h1 class="topictitle1">PG_STAT_BGWRITER</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001099134700__en-us_topic_0059778449_p39295200418"><strong id="EN-US_TOPIC_0000001099134700__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_0000001099134700__t3e2ffd91e54b4b8f8291e16b775229a7" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_BGWRITER columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001099134700__r73e00ed3b74046fda446f9f7217a2107"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001099134700__a0e508651ce5347ce92b5bb7a77d1607b"><strong id="EN-US_TOPIC_0000001099134700__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001099134700__a69bc5b8395644673b2bb8f5c0bffcf53">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001099134700__a32ef8ad9d7204a26838527d176d64dbf">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001099134700__rc745d48fa36144989905621543204c77"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a58cb8d0383d540268f386b79335a6e1e">checkpoints_timed</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__aa8147666d4874d3295ecafa6c1b44fc0">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__ae43abdefd15c4b1a91246c1ba9d5d0ab">Number of scheduled checkpoints that have been performed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__rbd98e5607d554d0ba26410f15cd7a192"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a77abc2221f2849479e7c84657712f419">checkpoints_req</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a439e51876cce40548810e738e29f60ef">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__a6984e5388a844beeac51ffae8da5ff70">Number of requested checkpoints that have been performed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__rbf72b5e5c3e641389316f5a4b4f03f1a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__ad621225d40444aec9d402cc50a9960e1">checkpoint_write_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__ad36e5fe136684da9b4d7c64a622ffcd9">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__adf3e5c8c552a46b386243375900978fb">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_0000001099134700__r3c73051b3dce4dc4997e2305db3aa837"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a945ce03c7efb4746afdaef5d4cf31abd">checkpoint_sync_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a7d121120994e43bbba6586029166221e">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__aea76f3dfc0534ecd99efe91536c45557">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_0000001099134700__rd815ee783687437eaf457bbadac5aa02"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__aed3cffefc74549c9b81399157a98d268">buffers_checkpoint</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a047a2f9b08f8419a80be1aa9a3f66d0f">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__a444326b2815841cdbe4be93957efbe89">Number of buffers written during checkpoints</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__r1582e6d70d654951bebb448a7bac2748"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__ad25708b691ef46dbad6b5efdc886f210">buffers_clean</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__ab004f00da16d4b4fabe2460022fce1bd">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__ac536f55ea83c4510926a26cb4ee38720">Number of buffers written by the background writer</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__r863195713a7f45c4ae4d102ae75bd10b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a546da2e786ff477d885b1affd92e4655">maxwritten_clean</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a9249c69d4ab94bd49b125d0cbe0a5865">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__aa2d3a7c40b52407799e53d8e08e4125c">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_0000001099134700__rc3575ed36aa64f7bb7098a1b390adcae"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a2a35f5ace946433b889d6f044486d917">buffers_backend</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a94dd4a350d5944e6bf1b17ed09ed0d7d">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__p8659105272814">Number of buffers written directly by a backend</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__r8c81afc3bfca40a480f9f3012f520524"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a8f9786fbc413438180fcd3874cc15211">buffers_backend_fsync</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a3c2bccedeb88448db04328c96335a4d5">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__adc77fc277b5641439947f318ce527380">Number of times that a backend has to execute <strong id="EN-US_TOPIC_0000001099134700__b0226162817508">fsync</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__r51ee092fc14245e3b8caffb2e73378dc"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a022df488c6dd4a78a0a33bd4ef2a2804">buffers_alloc</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a5f2af6e4ab804e4cbb2d66e2e5d64ef3">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__afd8bbd5bcde44ec99ee8fa1390b1cbc9">Number of buffers allocated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001099134700__re6d1b510d09c49f98b12662a909260cc"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001099134700__a22a8a18e326f46f9860f9ece9a906008">stats_reset</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001099134700__a34fbc9d15c1f445f8cfec4ca441a7308">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001099134700__a7b3d79c7d62f45589e4ce96756180588">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>