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

177 lines
30 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="EN-US_TOPIC_0000001233883395"></a><a name="EN-US_TOPIC_0000001233883395"></a>
<h1 class="topictitle1">Logging Time</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233883395__sbd8ad9bb6b9b48ba97f998f060dc56f3"><a name="EN-US_TOPIC_0000001233883395__sbd8ad9bb6b9b48ba97f998f060dc56f3"></a><a name="sbd8ad9bb6b9b48ba97f998f060dc56f3"></a><h4 class="sectiontitle">client_min_messages</h4><p id="EN-US_TOPIC_0000001233883395__ab104a5d651fe4ae8aba1325d3085d3b1"><strong id="EN-US_TOPIC_0000001233883395__b197554062634312">Parameter description</strong>: Specifies which level of messages are sent to the client. Each level covers all the levels following it. The lower the level is, the fewer messages are sent.</p>
<p id="EN-US_TOPIC_0000001233883395__p11463101175210"><strong id="EN-US_TOPIC_0000001233883395__b11578125441215">Type</strong>: USERSET</p>
<div class="notice" id="EN-US_TOPIC_0000001233883395__n61b090b2cd63452b848d0c5032f7427a"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233883395__a6118a299c7d6445db0d27c4b3a2955dc">When the values of <strong id="EN-US_TOPIC_0000001233883395__b18228135955413">client_min_messages</strong> and <a href="#EN-US_TOPIC_0000001233883395__s1ffb0797361d413d875381200fed970b">log_min_messages</a> are the same, the levels are different.</p>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__ab0acdb490eed4d19862e8498cc65201c"><strong id="EN-US_TOPIC_0000001233883395__b7727241102410">Valid values</strong>: Enumerated values. Valid values: <strong id="EN-US_TOPIC_0000001233883395__b107287412243">debug5</strong>, <strong id="EN-US_TOPIC_0000001233883395__b572812413241">debug4</strong>, <strong id="EN-US_TOPIC_0000001233883395__b37281641102416">debug3</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1472911410243">debug2</strong>, <strong id="EN-US_TOPIC_0000001233883395__b372917415242">debug1</strong>, <strong id="EN-US_TOPIC_0000001233883395__b472964182415">info</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1573094162417">log</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1073014152417">notice</strong>, <strong id="EN-US_TOPIC_0000001233883395__b773044172417">warning</strong>, <strong id="EN-US_TOPIC_0000001233883395__b13730441182411">error</strong> For details about the parameters, see <a href="#EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e">Table 1</a>.</p>
<p id="EN-US_TOPIC_0000001233883395__a83f750e96f5f4054aadbb615bbc0c24b"><strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0059778452_en-us_topic_0058967791_b5155240211820_1">Default value:</strong> <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0059778452_b84235270615540">notice</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__s1ffb0797361d413d875381200fed970b"><a name="EN-US_TOPIC_0000001233883395__s1ffb0797361d413d875381200fed970b"></a><a name="s1ffb0797361d413d875381200fed970b"></a><h4 class="sectiontitle">log_min_messages</h4><p id="EN-US_TOPIC_0000001233883395__a6c495c6c2306481a9bedcd2e252dc2e6"><strong id="EN-US_TOPIC_0000001233883395__b189102789034312">Parameter description</strong>: Specifies which level of messages will be written into server logs. Each level covers all the levels following it. The lower the level is, the fewer messages will be written into the log.</p>
<p id="EN-US_TOPIC_0000001233883395__p11733154719219"><strong id="EN-US_TOPIC_0000001233883395__b76317871319">Type</strong>: SUSET</p>
<div class="notice" id="EN-US_TOPIC_0000001233883395__n420ce143768444eaa67feee6b2a6ae9a"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233883395__af4d2da60cf474e6a83be9da8d1ea5278">When the values of <a href="#EN-US_TOPIC_0000001233883395__sbd8ad9bb6b9b48ba97f998f060dc56f3">client_min_messages</a> and <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0085032812_en-us_topic_0059778452_en-us_topic_0058967791_b84235270611741">log_min_messages</strong> are the same, the levels are different.</p>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__acd4d4849db8042219fb3cd48beab05b7"><strong id="EN-US_TOPIC_0000001233883395__b197133568246">Value range</strong>: enumerated type. Valid values: <strong id="EN-US_TOPIC_0000001233883395__b1071385672413">debug5</strong>, <strong id="EN-US_TOPIC_0000001233883395__b07141256192414">debug4</strong>, <strong id="EN-US_TOPIC_0000001233883395__b37141656132417">debug3</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1771418566240">debug2</strong>, <strong id="EN-US_TOPIC_0000001233883395__b127141565248">debug1</strong>, <strong id="EN-US_TOPIC_0000001233883395__b971565613246">info</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1471595616243">log</strong>, <strong id="EN-US_TOPIC_0000001233883395__b77153565242">notice</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1171655610249">warning</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1771615642417">error</strong>, <strong id="EN-US_TOPIC_0000001233883395__b671635617244">fatal</strong>, <strong id="EN-US_TOPIC_0000001233883395__b87171956132419">panic</strong> For details about the parameters, see <a href="#EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e">Table 1</a>.</p>
<p id="EN-US_TOPIC_0000001233883395__a15e2b975393949cf8cf974c553f30451"><strong id="EN-US_TOPIC_0000001233883395__b1782311210257">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883395__b19824628256">warning</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__s9d33915bddc343edab4a5517b8969e57"><h4 class="sectiontitle">log_min_error_statement</h4><p id="EN-US_TOPIC_0000001233883395__a75b23b5bd79c4760a8f1ec480491d146"><strong id="EN-US_TOPIC_0000001233883395__b128072565734312">Parameter description</strong>: Specifies which SQL statements that cause errors condition will be recorded in the server log.</p>
<p id="EN-US_TOPIC_0000001233883395__p43012219228"><strong id="EN-US_TOPIC_0000001233883395__b250610413137">Type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001233883395__a9e7a6626cd914a1fbfb325d0496f7cce"><strong id="EN-US_TOPIC_0000001233883395__b993283122515">Value range</strong>: enumerated type. Valid values: <strong id="EN-US_TOPIC_0000001233883395__b9932435256">debug5</strong>, <strong id="EN-US_TOPIC_0000001233883395__b20932183122510">debug4</strong>, <strong id="EN-US_TOPIC_0000001233883395__b109336362513">debug3</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1193383152514">debug2</strong>, <strong id="EN-US_TOPIC_0000001233883395__b20933113142510">debug1</strong>, <strong id="EN-US_TOPIC_0000001233883395__b9933133112510">info</strong>, <strong id="EN-US_TOPIC_0000001233883395__b793473152510">log</strong>, <strong id="EN-US_TOPIC_0000001233883395__b11934233251">notice</strong>, <strong id="EN-US_TOPIC_0000001233883395__b11934339257">warning</strong>, <strong id="EN-US_TOPIC_0000001233883395__b493515312518">error</strong>, <strong id="EN-US_TOPIC_0000001233883395__b18935739257">fatal</strong>, <strong id="EN-US_TOPIC_0000001233883395__b16935173112512">panic</strong> For details about the parameters, see <a href="#EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e">Table 1</a>.</p>
<div class="note" id="EN-US_TOPIC_0000001233883395__n2306de62c39e44dd970d9536de833d25"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233883395__u343fc63015694174bea581d6e023e29e"><li id="EN-US_TOPIC_0000001233883395__l72ff3b1083b04e3f82ff83a61310e481">The default is <strong id="EN-US_TOPIC_0000001233883395__b1420614115253">error</strong>, indicating that statements causing errors, log messages, fatal errors, or panics will be logged.</li><li id="EN-US_TOPIC_0000001233883395__lc9af1c4abaf84801bec8f1c916c748c6"><strong id="EN-US_TOPIC_0000001233883395__b85652278634312">panic</strong>: This feature is disabled.</li></ul>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__a08c81840ed3f4e62b21da6be19ff41ed"><strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0059778452_en-us_topic_0058967791_b1021419917644">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0059778452_b842352706155450">error</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__s670cade0b3b84413bd2256e1fe1c8cdb"><a name="EN-US_TOPIC_0000001233883395__s670cade0b3b84413bd2256e1fe1c8cdb"></a><a name="s670cade0b3b84413bd2256e1fe1c8cdb"></a><h4 class="sectiontitle">log_min_duration_statement</h4><p id="EN-US_TOPIC_0000001233883395__a4dacdb7c965145d1b4ccfcea34210df2"><strong id="EN-US_TOPIC_0000001233883395__b131195985334312">Parameter description</strong>: Specifies the threshold for logging statement execution durations. The execution duration that is greater than the specified value will be logged.</p>
<p id="EN-US_TOPIC_0000001233883395__aef5cce4319934546810f9313bd12662e">This parameter helps track query statements that need to be optimized. For clients using extended query protocol, durations of the Parse, Bind, and Execute are logged independently.</p>
<p id="EN-US_TOPIC_0000001233883395__p144358285222"><strong id="EN-US_TOPIC_0000001233883395__b84244701310">Type</strong>: SUSET</p>
<div class="notice" id="EN-US_TOPIC_0000001233883395__n90c5791fcfcf42a58a0ccf66502ca3dd"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233883395__a94b3f30d363c4aa0ba655e9e1ed3bd25">If this parameter and <a href="dws_04_0916.html#EN-US_TOPIC_0000001233761693__s3dd4368238fd47a2bb1de59c2142ede5">log_statement</a> are used at the same time, statements recorded based on the value of <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0085032812_b842352706151351">log_statement</strong> will not be logged again after their execution duration exceeds the value of this parameter. If you are not using <strong id="EN-US_TOPIC_0000001233883395__b1246714718212">syslog</strong>, it is recommended that you log the process ID (PID) or session ID using log_line_prefix so that you can link the current statement message to the last logged duration.</p>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__ad9885075abc844ff8e471c4b9519acbf"><strong id="EN-US_TOPIC_0000001233883395__b114922692511">Value range</strong>: an integer ranging from -1 to INT_MAX. The unit is millisecond.</p>
<ul id="EN-US_TOPIC_0000001233883395__u9e17cc3be8804dcc83cf591c1d039600"><li id="EN-US_TOPIC_0000001233883395__ld7d5c655e376431e8bc01d24b977f7b1">If this parameter is set to <strong id="EN-US_TOPIC_0000001233883395__b16555112372916">250</strong>, execution durations of SQL statements that run 250 ms or longer will be logged.</li><li id="EN-US_TOPIC_0000001233883395__l8f313edfc5e94cb884de52e8bab93b4d"><strong id="EN-US_TOPIC_0000001233883395__b55698856934312">0</strong>: Execution durations of all the statements are logged.</li><li id="EN-US_TOPIC_0000001233883395__l388c575fd58c4da9b07569f257f54ffd"><strong id="EN-US_TOPIC_0000001233883395__b164171631734312">1</strong>: This feature is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001233883395__a147a9d702ecb4b5998775132975835b0"><strong id="EN-US_TOPIC_0000001233883395__b128413243151938">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883395__b842352706151948">30min</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__sfa54bcc8393f44ef873c9993cee1fe73"><h4 class="sectiontitle">backtrace_min_messages</h4><p id="EN-US_TOPIC_0000001233883395__a90d6856f7f884df7928fe0052fa6777a"><strong id="EN-US_TOPIC_0000001233883395__b842352706112946">Parameter description</strong>: Prints the function's stack information to the server's log file if the level of information generated is greater than or equal to this parameter level.</p>
<p id="EN-US_TOPIC_0000001233883395__p10554633192217"><strong id="EN-US_TOPIC_0000001233883395__b09381097136">Type</strong>: SUSET</p>
<div class="notice" id="EN-US_TOPIC_0000001233883395__nde18cfb2294949fb81c645e3dbde7223"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233883395__a96742ec160664ded9db1d23d75186c51">This parameter is used for locating customer on-site problems. Because frequent stack printing will affect the system's overhead and stability, therefore, when you locate the onsite problems, set the value of this parameter to ranks other than <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0058967791_b842352706135146">fatal</strong> and <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0058967791_b842352706135149">panic</strong>.</p>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__a1075a98d426e4761af4886be77d24cc6"><strong id="EN-US_TOPIC_0000001233883395__b65838514134312">Value range</strong>: enumerated values</p>
<p id="EN-US_TOPIC_0000001233883395__a5dab9a312b884588b26a202eec6e1ad3">Valid values: <strong id="EN-US_TOPIC_0000001233883395__b20775182711258">debug5</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1377612275254">debug4</strong>, <strong id="EN-US_TOPIC_0000001233883395__b17776182712254">debug3</strong>, <strong id="EN-US_TOPIC_0000001233883395__b5776227182519">debug2</strong>, <strong id="EN-US_TOPIC_0000001233883395__b1077718279257">debug1</strong>, <strong id="EN-US_TOPIC_0000001233883395__b37771427202518">info</strong>, <strong id="EN-US_TOPIC_0000001233883395__b4778327192510">log</strong>, <strong id="EN-US_TOPIC_0000001233883395__b67781427112512">notice</strong>, <strong id="EN-US_TOPIC_0000001233883395__b11778202762517">warning</strong>, <strong id="EN-US_TOPIC_0000001233883395__b107791627182513">error</strong>, <strong id="EN-US_TOPIC_0000001233883395__b20779182722515">fatal</strong>, <strong id="EN-US_TOPIC_0000001233883395__b9779142702512">panic</strong> For details about the parameters, see <a href="#EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e">Table 1</a>.</p>
<p id="EN-US_TOPIC_0000001233883395__a42161193594944e5bad80cb7d92b60e3"><strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0085032812_en-us_topic_0059778452_en-us_topic_0058967791_b36363861152751">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0085032812_en-us_topic_0059778452_b842352706155621">panic</strong></p>
</div>
<p id="EN-US_TOPIC_0000001233883395__a65c3ea3aa69d47ebb4ae00879c33f9bb"><a href="#EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e">Table 1</a> explains the message security levels used in <span id="EN-US_TOPIC_0000001233883395__text831683596">GaussDB(DWS)</span>. If logging output is sent to <strong id="EN-US_TOPIC_0000001233883395__b186769354232">syslog</strong> or <strong id="EN-US_TOPIC_0000001233883395__b56779357237">eventlog</strong>, severity is translated in <span id="EN-US_TOPIC_0000001233883395__text414561421">GaussDB(DWS)</span> as shown in the table.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e"></a><a name="ta1ceaf79532d439ead5e098dee6f7b7e"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233883395__ta1ceaf79532d439ead5e098dee6f7b7e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Message Severity Levels</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233883395__r8cf599f9d11e41f6b36dad37d28933f4"><th align="left" class="cellrowborder" valign="top" width="23.89%" id="mcps1.3.7.2.5.1.1"><p id="EN-US_TOPIC_0000001233883395__a518f357d982c487ca173df5da2506980"><strong id="EN-US_TOPIC_0000001233883395__b48865205234312">Severity</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="38.29%" id="mcps1.3.7.2.5.1.2"><p id="EN-US_TOPIC_0000001233883395__ae53cc0118f6a4d6a8fe08440a4da42ff"><strong id="EN-US_TOPIC_0000001233883395__b198453614534312">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.94%" id="mcps1.3.7.2.5.1.3"><p id="EN-US_TOPIC_0000001233883395__ab26d7b91292642c49fac622024d89bb4"><strong id="EN-US_TOPIC_0000001233883395__b199934193034312">syslog</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.88%" id="mcps1.3.7.2.5.1.4"><p id="EN-US_TOPIC_0000001233883395__afc262920767d4753b93573869f98ea02"><strong id="EN-US_TOPIC_0000001233883395__b142555748534312">eventlog</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233883395__r84b67b666dfd4dd39857d8a3a81dd57b"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a9d4d5e0082b447f2a7d1184b8337074f">debug[1-5]</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__ab82dcbc3d2ae4af4a725df29112a904d">Provides detailed debug information.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a90f119729dc04ded953fede7cf835bf1">DEBUG</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__a2893373693e743aba3dcbaf061383964">INFORMATION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__rfbbe27e69c9940af9df7436930ad6c68"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a2731dbc8d71f4dea91b4c4c0dbd1a805">log</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a423d69301b2a42669d72362b820f7c20">Reports information of interest to administrators, for example, checkpoint activity.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__af421502954454efaa2ef8c3c129d4066">INFO</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__af81024864e0b4da6acb10ee8d4214a3b">INFORMATION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__r2c2d38011eaa41638f69049ce1e8ff38"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__aaf14c50cf59b470199f410952b5ce981">info</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a7ea36a9ffcc54f16bb972471fabc6e76">Provides information implicitly requested by the user, for example, output from <strong id="EN-US_TOPIC_0000001233883395__b70431412134312">VACUUM VERBOSE</strong>.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a8899b8bd74514d95a7f6e18395c96fe8">INFO</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__ac76436ca9930437b8093bf840f62fe41">INFORMATION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__r33eccb1495664fee9ab1dffa23f248e8"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__ab0c4731116ef466c90a85667b6429bee">notice</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a64162f17b4634ec09f38fb7cc6701f4c">Provides information that might be helpful to users, for example, notice of truncation of long identifiers and index created as part of the primary key.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a1ee75e9544cd49aaa022fc1733995edc">NOTICE</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__a43fb368f85bd4e9297b9014e19259459">INFORMATION</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__r3d48fa9c230044d786dffb36234ee9f1"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a8c816e4b4d274e68ba9d5797448ee45f">warning</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a1a51f1b7d7be46049c748553918b058f">Provides warnings of likely problems, for example, <strong id="EN-US_TOPIC_0000001233883395__b130943767634312">COMMIT</strong> outside a transaction block.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a2a0c2f9640fc4185b72b5bfc491d046a">NOTICE</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__a9e293941b10f42789ecd74ab3940577a">WARNING</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__r540493874d6b4ef7a2b8b36de6fcd7df"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a771bbd0145aa4cd9b4eeb4328fab6e24">error</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a92dcdcf7ef164101b9c5e6fee284b312">Reports an error that causes a command to terminate.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a5ca4c082a9f74747b22fc1114916cd56">WARNING</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__a3bc746222d9b4b6ea85d0b4d9ae3cba9">ERROR</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__rfeb5e38dc056465da9ff0c838325b4ef"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a8f814259eeb947358677bb78c8e18a4c">fatal</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a363ee2b7a30140a7a3d209433c64b70f">Reports the reason that causes a session to terminate.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__ad47f2e7dde564d9b89774584a3d951d6">ERR</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__aa71a9e375ff74362a863ae85f06c1087">ERROR</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233883395__r98e34bfc2c9b47e094685b97a741fed3"><td class="cellrowborder" valign="top" width="23.89%" headers="mcps1.3.7.2.5.1.1 "><p id="EN-US_TOPIC_0000001233883395__a6b2de05294d64facbb70dc644576f0cb">panic</p>
</td>
<td class="cellrowborder" valign="top" width="38.29%" headers="mcps1.3.7.2.5.1.2 "><p id="EN-US_TOPIC_0000001233883395__a47c1446a95ca487a8a7d494f281f408c">Reports an error that caused all database sessions to terminate.</p>
</td>
<td class="cellrowborder" valign="top" width="17.94%" headers="mcps1.3.7.2.5.1.3 "><p id="EN-US_TOPIC_0000001233883395__a85004c8b6a044d8aa2caf8d8b439b35b">CRIT</p>
</td>
<td class="cellrowborder" valign="top" width="19.88%" headers="mcps1.3.7.2.5.1.4 "><p id="EN-US_TOPIC_0000001233883395__aca3f41aa67eb462d841acec469713533">ERROR</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__section12879737135917"><h4 class="sectiontitle">plog_merge_age</h4><p id="EN-US_TOPIC_0000001233883395__p088914378599"><strong id="EN-US_TOPIC_0000001233883395__b842352706205836">Parameter description</strong>: Specifies the output interval of performance log data.</p>
<p id="EN-US_TOPIC_0000001233883395__p5362114082219"><strong id="EN-US_TOPIC_0000001233883395__b04651410161315">Type</strong>: SUSET</p>
<div class="notice" id="EN-US_TOPIC_0000001233883395__note189816377599"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001233883395__p15900237115913">This parameter value is in milliseconds. You are advised to set this parameter to a value that is a multiple of 1000. That is, the value is in seconds. Name extension of the performance log files controlled by this parameter is .prf. These log files are stored in the <strong id="EN-US_TOPIC_0000001233883395__b84235270621355">$GAUSSLOG/gs_profile/</strong>&lt;<em id="EN-US_TOPIC_0000001233883395__i84235269721359">node_name</em>&gt; directory. <em id="EN-US_TOPIC_0000001233883395__i20368568521412">node_name</em> is the value of <strong id="EN-US_TOPIC_0000001233883395__b84235270621418">pgxc_node_name</strong> in the <strong id="EN-US_TOPIC_0000001233883395__b84235270621429">postgres.conf</strong> file. You are advised not to use this parameter externally.</p>
</div></div>
<p id="EN-US_TOPIC_0000001233883395__p15571655133911"><strong id="EN-US_TOPIC_0000001233883395__en-us_topic_0059778102_aae7931e7938b4f8f8021ead037bc434a">Value range</strong>: an integer ranging from 0 to INT_MAX. The unit is millisecond (ms).</p>
<ul id="EN-US_TOPIC_0000001233883395__ul165467231031"><li id="EN-US_TOPIC_0000001233883395__li15546192315315"><strong id="EN-US_TOPIC_0000001233883395__b84235270621545">0</strong> indicates that the current session will not output performance log data.</li><li id="EN-US_TOPIC_0000001233883395__li11943126339">A value other than 0 indicates the output interval of performance log data. The smaller the value is, the more log data is output, resulting in more negative impact on the performance.</li></ul>
<p id="EN-US_TOPIC_0000001233883395__p1890813710595"><strong id="EN-US_TOPIC_0000001233883395__b113740788">Default value</strong>: <strong id="EN-US_TOPIC_0000001233883395__b693708485">3s</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233883395__section126741201912"><h4 class="sectiontitle">profile_logging_module</h4><p id="EN-US_TOPIC_0000001233883395__ae497467375a54cec913d3b7cfe5809d9"><strong id="EN-US_TOPIC_0000001233883395__b11506151741219">Parameter description</strong>: Specifies the type of performance logs. When using this parameter, ensure that the value of <strong id="EN-US_TOPIC_0000001233883395__b46141122131">plog_merge_age</strong> is not 0. This parameter is a session-level parameter, and you are not advised to use the <strong id="EN-US_TOPIC_0000001233883395__b158696317711">gs_guc</strong> tool to set it. Only clusters of 8.1.3 and later versions support this function.</p>
<p id="EN-US_TOPIC_0000001233883395__p3604683302"><strong id="EN-US_TOPIC_0000001233883395__b145662443134">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233883395__ae209100cb34b453090ecf92376fd3de8"><strong id="EN-US_TOPIC_0000001233883395__b1920014615138">Value range</strong>: a string</p>
<p id="EN-US_TOPIC_0000001233883395__aa431c7db59fa45c78f6d5f3a08cbb188"><strong id="EN-US_TOPIC_0000001233883395__b056275591313">Default value</strong>: OBS, HADOOP and REMOTE_DATANODE are enabled. MD is disabled. You can run the<strong id="EN-US_TOPIC_0000001233883395__b194871224142212"> SHOW profile_logging_module</strong> command to view the value.</p>
<p id="EN-US_TOPIC_0000001233883395__p1838614321641"><strong id="EN-US_TOPIC_0000001233883395__b1050864522115">Setting method</strong>: First, you can run <strong id="EN-US_TOPIC_0000001233883395__b2051511450217">SHOW profile_logging_module</strong> to view which module is controllable. For example, the query output result is as follows:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233883395__screen8905517185512"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">show</span><span class="w"> </span><span class="n">profile_logging_module</span><span class="p">;</span>
<span class="n">profile_logging_module</span>
<span class="c1">--------------------------------------------</span>
<span class="k">ALL</span><span class="p">,</span><span class="k">on</span><span class="p">(</span><span class="n">OBS</span><span class="p">,</span><span class="n">HADOOP</span><span class="p">,</span><span class="n">REMOTE_DATANODE</span><span class="p">),</span><span class="k">off</span><span class="p">(</span><span class="n">MD</span><span class="p">)(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
<p id="EN-US_TOPIC_0000001233883395__p1030242317914">Open the MD performance log and view the setting. The ALL identifier is equivalent to a shortcut operation. That is, logs of all modules can be enabled or disabled. </p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233883395__screen991852410575"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span>
<span class="normal">7</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">set</span><span class="w"> </span><span class="n">profile_logging_module</span><span class="o">=</span><span class="s1">'on(md)'</span><span class="p">;</span>
<span class="k">SET</span>
<span class="k">show</span><span class="w"> </span><span class="n">profile_logging_module</span><span class="p">;</span>
<span class="n">profile_logging_module</span>
<span class="c1">---------------------------------------------</span>
<span class="k">ALL</span><span class="p">,</span><span class="k">on</span><span class="p">(</span><span class="n">MD</span><span class="p">,</span><span class="n">OBS</span><span class="p">,</span><span class="n">HADOOP</span><span class="p">,</span><span class="n">REMOTE_DATANODE</span><span class="p">),</span><span class="k">off</span><span class="p">()(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0913.html">Error Reporting and Logging</a></div>
</div>
</div>