doc-exports/docs/dws/dev/dws_04_0694.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

90 lines
8.2 KiB
HTML

<a name="EN-US_TOPIC_0000001098974564"></a><a name="EN-US_TOPIC_0000001098974564"></a>
<h1 class="topictitle1">GS_SESSION_MEMORY_STATISTICS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001098974564__af05c91e7db9d4d468501aed71a3c60a4"><strong id="EN-US_TOPIC_0000001098974564__b842352706164353">GS_SESSION_MEMORY_STATISTICS</strong> displays load management information about memory usage of ongoing complex jobs executed by the current user.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098974564__t788181c2deff441ebdc8323ba161a538" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_SESSION_MEMORY_STATISTICS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098974564__rad75d299f8b5463a87b2d0daf0a3c403"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001098974564__a116527ab20444e6d9860174f3c1a7951"><strong id="EN-US_TOPIC_0000001098974564__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.91%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001098974564__a6030bb975a64474fafd3698a215a36e4">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.839999999999996%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001098974564__ac48d4bb5a60044b59e69cc2248520aaa">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001098974564__rc1017e522df54950a7cba16e0f396dd2"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a442bd4bdb35e41ed97f1b7def5450a70">datid</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__a80d3ba4583304535b45f7b971fc8bac8">oid</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__afb1a3351a2d24920a946e54e1414e8c1">OID of the database this backend is connected to</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__r31814844295d481c91d638b8435cd395"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__adeaf23a9484c48f4b7c37148b6524218">usename</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__ad39cccec4ef8493b8e450872ee7b606c">name</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__a1573a9b02b164749a6a2b2d9821f774f">Name of the user logging in to the backend</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__r9f2fe864ad224f39b131072f05668109"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a20064637264e4bb5b6eb2f56c1b1284d">pid</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__a5c5680d8add34948819b5ed4ea9bb50a">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__a15b81b5082bb42338bf419e85fca8173">ID of a backend process</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__r34bb355baa644dfe8ec87ee704589052"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a792e1e56957842838e2dcf9613946924">start_time</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__a0d52361cbbb54a99b1370d889bbb4430">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__a3ec11001a01a4366b9c0dc0ec9ac220e">Time when the statement starts to be executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__rf019f05d5f7c415596391bd0bcc1cf78"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a08be2ee59e174ed398f37a84fa2127e2">min_peak_memory</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__a5d812a9d1cf24aa3b6e41a544f5a3d9a">integer</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__ae24e8dab4f3741bc8e3711d804ea3c44">Minimum memory peak of a statement across all DNs, in MB</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__r9599dcbe3cf0410d9983517daeddbb7f"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a76fde75866f94bdca0136e9e95e75d35">max_peak_memory</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__ab4df4c9d74f7409d8a95d23718769f61">integer</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__a6bf12860bf514ffc93246d4575ac61c9">Maximum memory peak of a statement across all DNs, in MB</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__r53a25e4e2e9e44b9894a2bf77195b1f8"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__acdb38b6711e74b188b6a161ff67f6f40">spill_info</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__a1219bd87b36b4ddc911347322eaaf566">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__ad09d2e4405db4a8988c6bc1d5cade6ea">Information about statement flushing into disks on DNs</p>
<p id="EN-US_TOPIC_0000001098974564__a551e109075bd4f32b43c0b64d34aa329"><strong id="EN-US_TOPIC_0000001098974564__b842352706145131">None</strong> indicates that the statement has not been flushed to disks on any DNs.</p>
<p id="EN-US_TOPIC_0000001098974564__a0982822b6e664c008dd4260d0d209cef"><strong id="EN-US_TOPIC_0000001098974564__b84235270614533">All</strong> indicates that the statement has been flushed to disks on every DN.</p>
<p id="EN-US_TOPIC_0000001098974564__a949635a3eb234d1eb92c111d380fd918"><strong id="EN-US_TOPIC_0000001098974564__b842352706145438">[</strong><em id="EN-US_TOPIC_0000001098974564__i842352697145434">a</em><strong id="EN-US_TOPIC_0000001098974564__b842352706145437">:</strong><em id="EN-US_TOPIC_0000001098974564__i842352697145432">b</em><strong id="EN-US_TOPIC_0000001098974564__b842352706145441">]</strong> indicates that the statement has been flushed to disks on <em id="EN-US_TOPIC_0000001098974564__i842352697145515">a</em> of <em id="EN-US_TOPIC_0000001098974564__i84235269714557">b</em> DNs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__rf651ab806e89489f959d5c2daa26f762"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__a31cdd61434c7463ab20d4c62992e31fd">query</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__ae4005190b50741119bf094b23ad61528">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__ac076605e34b74b02ab0992480e6e2777">Statement that is being executed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098974564__row154664212341"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001098974564__p646772133417">node_group</p>
</td>
<td class="cellrowborder" valign="top" width="11.91%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001098974564__p44671211349">text</p>
</td>
<td class="cellrowborder" valign="top" width="62.839999999999996%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001098974564__p8467629348">Logical cluster of the user running the statement</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>