Files
doc-exports/docs/dws/dev/dws_04_0692.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

17 lines
2.7 KiB
HTML

<a name="EN-US_TOPIC_0000001764491672"></a><a name="EN-US_TOPIC_0000001764491672"></a>
<h1 class="topictitle1">GS_NODE_STAT_RESET_TIME</h1>
<div id="body0000001130297303"><p id="EN-US_TOPIC_0000001764491672__p5350121841814"><strong id="EN-US_TOPIC_0000001764491672__b37926201151">GS_NODE_STAT_RESET_TIME</strong> provides the statistics reset time of the current node and returns a timestamp with the time zone.</p>
<p id="EN-US_TOPIC_0000001764491672__p4728204851212">For details, see the <strong id="EN-US_TOPIC_0000001764491672__b206153213164">get_node_stat_reset_time()</strong> function in "Functions and Operators &gt; System Administration Functions &gt; Other Functions" in <em id="EN-US_TOPIC_0000001764491672__i3733468166">SQL Syntax</em>.</p>
<div class="note" id="EN-US_TOPIC_0000001764491672__note14887591274"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><div class="p" id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_p6887591575">When an instance is running, its statistics keep rising. In the following cases, the statistical values in the memory will be reset to <strong id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_b5536183916429">0</strong>:<ul id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_ul38875915710"><li id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_li1688459870">The instance is restarted or a cluster switchover occurs.</li><li id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_li198875914717">The database is dropped.</li><li id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_li1688059677">A reset operation is performed. For example, the statistics counter in the database is reset using the <strong id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_b1448552994715">pgstat_recv_resetcounter</strong> function or the Unique SQL statements are cleared using the <strong id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_b1068215362536">reset_instr_unique_sql</strong> function.</li></ul>
</div>
<p id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_p488559278">If any of the preceding events occurs, <span id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_text212614122172">GaussDB(DWS)</span> will record the time when the statistics are reset. You can query the time using the <strong id="EN-US_TOPIC_0000001764491672__en-us_topic_0000001811634829_b7383153535712">get_node_stat_reset_time</strong> function.</p>
</div></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>