doc-exports/docs/dws/dev/dws_04_0763.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

81 lines
6.1 KiB
HTML

<a name="EN-US_TOPIC_0000001233761675"></a><a name="EN-US_TOPIC_0000001233761675"></a>
<h1 class="topictitle1">PG_STAT_GET_MEM_MBYTES_RESERVED</h1>
<div id="body1537502241567"><p id="EN-US_TOPIC_0000001233761675__p8060118"><strong id="EN-US_TOPIC_0000001233761675__b7104171617597">PG_STAT_GET_MEM_MBYTES_RESERVED</strong> displays the current activity information of a thread stored in memory. You need to specify the thread ID (pid in <a href="dws_04_0755.html">PG_STAT_ACTIVITY</a>) for query. If the thread ID is set to <strong id="EN-US_TOPIC_0000001233761675__b2096815341831">0</strong>, the current thread ID is used. For example:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233761675__screen19192339142319"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_stat_get_mem_mbytes_reserved</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span>
</pre></div></td></tr></table></div>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233761675__table230952415412" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_GET_MEM_MBYTES_RESERVED columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233761675__row63108240547"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.3.1.1"><p id="EN-US_TOPIC_0000001233761675__p183109249540">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.3.1.2"><p id="EN-US_TOPIC_0000001233761675__p9310224125414">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233761675__row8310524145415"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p16310924155418">ConnectInfo</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p131052411548">Connection information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row113101824145414"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p14310162405410">ParctlManager</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p331019248540">Concurrency management information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row14310142475412"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p1431015244545">GeneralParams</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p203105241541">Basic parameter information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row8310142455419"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p12310192411547">GeneralParams RPDATA</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p33104242544">Basic resource pool information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row19310162485418"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p33101224145413">ExceptionManager</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p14310024155412">Exception management information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row14310142417544"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p131017248549">CollectInfo</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p1831042414548">Collection information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row13310624135411"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p14310192495417">GeneralInfo</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p63101124165413">Basic information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row133111824125415"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p18311202475415">ParctlState</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p1031112241542">Concurrency status information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row631112435418"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p3311192475419">CPU INFO</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p1331119249549">CPU information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row531142405414"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p11311162412548">ControlGroup</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p3311324125418">Cgroup information</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761675__row42450497315"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001233761675__p924719491933">IOSTATE</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001233761675__p12474498312">I/O status information</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>