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

613 lines
68 KiB
HTML

<a name="EN-US_TOPIC_0000001233430203"></a><a name="EN-US_TOPIC_0000001233430203"></a>
<h1 class="topictitle1">Security Functions</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233430203__section2165626152015"><h4 class="sectiontitle">gs_password_deadline()</h4><p id="EN-US_TOPIC_0000001233430203__p52227313208">Description: Displays the time before the password of the current account expires. After the password expires, the system prompts the user to change the password. This parameter is related to the GUC parameter <strong id="EN-US_TOPIC_0000001233430203__b12622133114512">password_effect_time</strong>.</p>
<p id="EN-US_TOPIC_0000001233430203__p52222031102015">Return type: interval</p>
<p id="EN-US_TOPIC_0000001233430203__p2022293118208">Examples:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen5222173114209"><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></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">gs_password_deadline</span><span class="p">();</span>
<span class="w"> </span><span class="n">gs_password_deadline</span><span class="w"> </span>
<span class="c1">-------------------------</span>
<span class="w"> </span><span class="mi">83</span><span class="w"> </span><span class="n">days</span><span class="w"> </span><span class="mi">17</span><span class="p">:</span><span class="mi">44</span><span class="p">:</span><span class="mi">32</span><span class="p">.</span><span class="mi">196094</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 class="section" id="EN-US_TOPIC_0000001233430203__section1719536202111"><h4 class="sectiontitle">gs_password_expiration()</h4><p id="EN-US_TOPIC_0000001233430203__p1791610108212">Description: Displays the time before the password of the current account expires. After the password expires, the user cannot log in to the database. This parameter is related to the DDL statement <strong id="EN-US_TOPIC_0000001233430203__b126201527269">PASSWORD EXPIRATION period</strong> for creating a user. The return value of the function is greater than or equal to -1. If <strong id="EN-US_TOPIC_0000001233430203__b14892121562714">PASSWORD EXPIRATION period</strong> is not specified during user creation, the default value is <strong id="EN-US_TOPIC_0000001233430203__b1838119354277">-1</strong>, indicating that there is no expiration limit.</p>
<p id="EN-US_TOPIC_0000001233430203__p29161410172115">Return type: interval</p>
<p id="EN-US_TOPIC_0000001233430203__p89161103213">Examples:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen8916121042113"><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></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">gs_password_expiration</span><span class="p">();</span>
<span class="w"> </span><span class="n">gs_password_expiration</span><span class="w"> </span>
<span class="c1">-------------------------</span>
<span class="w"> </span><span class="mi">29</span><span class="w"> </span><span class="n">days</span><span class="w"> </span><span class="mi">23</span><span class="p">:</span><span class="mi">59</span><span class="p">:</span><span class="mi">49</span><span class="p">.</span><span class="mi">731482</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 class="section" id="EN-US_TOPIC_0000001233430203__section8347315192112"><h4 class="sectiontitle">login_audit_messages(flag boolean)</h4><p id="EN-US_TOPIC_0000001233430203__a1c2f82361b184a848db702174b2408df">Description: Queries login information about a login user.</p>
<p id="EN-US_TOPIC_0000001233430203__a2451aa71198d4acbb2943e84deb15d48">Return type: tuple</p>
<p id="EN-US_TOPIC_0000001233430203__a57684626ad7e4b1690c3c0b40b645872">Examples:</p>
<ul id="EN-US_TOPIC_0000001233430203__u025e17a32ca74e7fa4c7c2fd28c38f5c"><li id="EN-US_TOPIC_0000001233430203__l20af1ef97977499d957195280160f0f3">Check the date, time, and IP address successfully authenticated during the last login:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__sf2218b7910aa4883abd7f86013c859ff"><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></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages</span><span class="p">(</span><span class="k">true</span><span class="p">);</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span>
<span class="c1">------------+----------+------------------------+---------------+--------+--------------------</span>
<span class="w"> </span><span class="n">dbadmin</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">gaussdb</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2017</span><span class="o">-</span><span class="mi">06</span><span class="o">-</span><span class="mi">02</span><span class="w"> </span><span class="mi">15</span><span class="p">:</span><span class="mi">28</span><span class="p">:</span><span class="mi">34</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">login_success</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">ok</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">gsql</span><span class="o">@</span><span class="p">[</span><span class="k">local</span><span class="p">]</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>
</li><li id="EN-US_TOPIC_0000001233430203__l132e0e348f844499ba4169cb1432d389">Check the date, time, and IP address that failed to be authenticated during the last login:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__s18c8d3e30ac8417da8d957b26787d048"><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">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages</span><span class="p">(</span><span class="k">false</span><span class="p">)</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="k">desc</span><span class="w"> </span><span class="k">limit</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span>
<span class="c1">------------+----------+------------------------+--------------+--------+-------------------------</span>
<span class="p">(</span><span class="mi">0</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001233430203__l4f2e18146c4043119160064939416a00">Check the number of failed attempts, date, and time since the previous successful authentication:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__s31dab6c9875b49f4bb68fc9f1e466352"><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">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages</span><span class="p">(</span><span class="k">false</span><span class="p">);</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span>
<span class="c1">------------+----------+------------------------+--------------+--------+-------------------------</span>
<span class="p">(</span><span class="mi">0</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430203__section423241412239"><h4 class="sectiontitle">login_audit_messages_pid(flag boolean)</h4><p id="EN-US_TOPIC_0000001233430203__p02307143238">Description: Queries login information about a login user. Different from <strong id="EN-US_TOPIC_0000001233430203__b842352706171639">login_audit_messages</strong>, this function queries login information based on <strong id="EN-US_TOPIC_0000001233430203__b842352706171732">backendid</strong>. Information about subsequent logins of the same user does not alter the query result of previous logins and cannot be found using this function.</p>
<p id="EN-US_TOPIC_0000001233430203__p5230141412238">Return type: tuple</p>
<p id="EN-US_TOPIC_0000001233430203__p14230714152319">Examples:</p>
<ul id="EN-US_TOPIC_0000001233430203__ul1223241492318"><li id="EN-US_TOPIC_0000001233430203__li12312148232">Check the date, time, and IP address successfully authenticated during the last login:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen102311914152318"><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></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages_pid</span><span class="p">(</span><span class="k">true</span><span class="p">);</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">backendid</span>
<span class="c1">------------+----------+------------------------+---------------+--------+--------------------</span>
<span class="w"> </span><span class="n">dbadmin</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">postgres</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2017</span><span class="o">-</span><span class="mi">06</span><span class="o">-</span><span class="mi">02</span><span class="w"> </span><span class="mi">15</span><span class="p">:</span><span class="mi">28</span><span class="p">:</span><span class="mi">34</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">login_success</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">ok</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">gsql</span><span class="o">@</span><span class="p">[</span><span class="k">local</span><span class="p">]</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">140311900702464</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>
</li><li id="EN-US_TOPIC_0000001233430203__li1023121412319">Check the date, time, and IP address that failed to be authenticated during the last login:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen523181452314"><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">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages_pid</span><span class="p">(</span><span class="k">false</span><span class="p">)</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="k">desc</span><span class="w"> </span><span class="k">limit</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">backendid</span>
<span class="c1">------------+----------+------------------------+--------------+--------+-------------------------</span>
<span class="p">(</span><span class="mi">0</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001233430203__li8232191415231">Check the number of failed attempts, date, and time since the previous successful authentication:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen162329145231"><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">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">login_audit_messages_pid</span><span class="p">(</span><span class="k">false</span><span class="p">);</span>
<span class="w"> </span><span class="n">username</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">database</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">logintime</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="k">result</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">client_conninfo</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">backendid</span>
<span class="c1">------------+----------+------------------------+--------------+--------+-------------------------</span>
<span class="p">(</span><span class="mi">0</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430203__section149875462317"><a name="EN-US_TOPIC_0000001233430203__section149875462317"></a><a name="section149875462317"></a><h4 class="sectiontitle">pg_query_audit()</h4><p id="EN-US_TOPIC_0000001233430203__p7621105932316">Description: Displays audit logs of the CN.</p>
<p id="EN-US_TOPIC_0000001233430203__p19621155913236">Return type: record</p>
<p id="EN-US_TOPIC_0000001233430203__p126214591230">The following table describes return columns.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233430203__table18563476240" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Fields returned by the <strong id="EN-US_TOPIC_0000001233430203__b733915723414">pg_query_audit()</strong> function</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233430203__row125641477247"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.1"><p id="EN-US_TOPIC_0000001233430203__p95642710243">Column</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.5.2.4.1.2"><p id="EN-US_TOPIC_0000001233430203__p11564197132411">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.5.2.4.1.3"><p id="EN-US_TOPIC_0000001233430203__p145649712410">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233430203__row1956420702418"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p656414782414">begintime</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p156487132415">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p25642713244">Operation start time</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row205640732410"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p7564178244">endtime</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p11564673242">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p1356411742415">Operation end time</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row115648762414"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p256517782414">operation_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p556527122415">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p1556514782411">Operation type. For details, see <a href="#EN-US_TOPIC_0000001233430203__table15444719132417">Table 2</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1856510752416"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p6565187162420">audit_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p65652752412">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p13565574248">Audit type. For details, see <a href="#EN-US_TOPIC_0000001233430203__table8621433112613">Table 3</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row3565187102414"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p13565279246">result</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p10565187142417">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p1556517182413">Operation result</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row5565372248"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1956517742412">username</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p175663720240">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p05664712418">Name of the user who performs the operation</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row856614742413"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p165669720242">database</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1756637152418">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p18566379240">Database name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row15566579243"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1356667122415">client_conninfo</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1456677142410">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p35669715247">Client connection information, that is, gsql, JDBC, or ODBC.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row85661877245"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1556618772416">object_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p456616718245">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p156697182414">Object name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row175668752418"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p656616782412">command_text</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p95676722410">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p156710714241">Command used to perform the operation</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1656727192416"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p15671375243">detail_info</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p55675715246">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p1756713711241">Operation details</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row20567127102415"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p12567157182410">transaction_xid</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1556718782416">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p856719711248">Transaction ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row2056717172417"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p35677762413">query_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p356713752415">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p4567137122413">Query ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row356710742411"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p35682713244">node_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1056818732412">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p656857172412">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row2056867112416"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p656867162416">thread_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p35689742410">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p145681742415">Thread ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row19568477247"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1856813718242">local_port</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p195684792417">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p165681470245">Local port</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row956818732415"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001233430203__p2056818713240">remote_port</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001233430203__p9568147172415">text</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001233430203__p165686716242">Remote port</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001233430203__table15444719132417"></a><a name="table15444719132417"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233430203__table15444719132417" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Operation types</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233430203__row144451419132415"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.5.6.2.3.1.1"><p id="EN-US_TOPIC_0000001233430203__p18445719192411">Operation Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.5.6.2.3.1.2"><p id="EN-US_TOPIC_0000001233430203__p34451919172418">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233430203__row954075911496"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p4151165315219">audit_switch</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p20598251437">Indicates that the operations of enabling and disabling the audit log function are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row6445141922410"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p13446111918243">login_logout</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p104461919152411">Indicates that user login and log-out operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row122401116133211"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1424115166324">system</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p72411016133218">Indicates that the system startup, shutdown, and instance switchover operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row2738131795115"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p127391178514">sql_parse</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p17739131725119">Indicates that SQL statement parsing operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row544617196247"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p4446121912248">user_lock</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p17446141992418">Indicates that user locking and unlocking operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1446111982415"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p444721972411">grant_revoke</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p44471219122416">Indicates that user permission granting and revoking operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row87085912220"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p555317201922">violation</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p45534203219">Indicates that user's access violation operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row14477192247"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p164473192242">ddl</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p144714198247">Indicates that DDL operations are audited. DDL operations are controlled at a fine granularity based on operation objects. Therefore, <strong id="EN-US_TOPIC_0000001233430203__b169648227717">audit_system_object</strong> is used to control the objects whose DDL operations are to be audited. (The audit function takes effect as long as <strong id="EN-US_TOPIC_0000001233430203__b15964152216713">audit_system_object</strong> is configured, no matter whether <strong id="EN-US_TOPIC_0000001233430203__b7964192211712">ddl</strong> is set.)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row2674134616213"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1686135612219">dml</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p186861656626">Indicates that the DML operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row344751952412"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p15447131911249">select</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p6447201912245">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b1799242212120">SELECT</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1222193843517"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p422143823515">internal_event</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p172373893516">Indicates that internal incident operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1826217462916"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p9238102111010">user_func</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p12877185717911">Indicates that operations related to user-defined functions, stored procedures, and anonymous blocks are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row159657501496"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p387815714918">special_func</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p887814571596">Indicates that special function invoking operations are audited. Special functions include <strong id="EN-US_TOPIC_0000001233430203__b198579597793746">pg_terminate_backend</strong> and <strong id="EN-US_TOPIC_0000001233430203__b153819729993746">pg_cancel_backend</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1418153141116"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p14478197249">copy</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1344761918249">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b83451752112915">COPY</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row644711952417"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p144814193247">set</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p0448161992411">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b03482471515">SET</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row444841918243"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p24481819152412">transaction</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p17448151962418">Indicates that transaction operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row194481019182411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p2448121912243">vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1144801917246">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b1293953115159">VACUUM </strong>operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row744818199247"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p10448319152414">analyze</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1844861913249">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b988193412156">ANALYZE</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row05771351191116"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p5452101914246">cursor</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p124521019162420">Indicates that cursor operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row10427171331319"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1342881331312">anonymous_block</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p8428141311132">Indicates that the anonymous block operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row644818190248"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p8448161962415">explain</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1744861962417">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b14177171413612">EXPLAIN</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row16450819102414"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p4450111915247">show</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1245016197243">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b57607406386">SHOW</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row55788444148"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p2057917446142">lock_table</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p1579174411411">Indicates that table lock operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row117537227153"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p157621260154">comment</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p14762142641519">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b136445802393746">COMMENT</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row172431755167"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1724313521610">preparestmt</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p7866114441612">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b37304762393746">PREPARE,</strong> <strong id="EN-US_TOPIC_0000001233430203__b167554390893746">EXECUTE</strong>, and <strong id="EN-US_TOPIC_0000001233430203__b31520535993746">DEALLOCATE </strong>operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row8139845121916"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p9951750101913">cluster</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p5951195041919">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b143593177193746">CLUSTER</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row14791223191814"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p20593527191811">constraints</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p17593227191819">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b94148177393746">CONSTRAINTS</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row1745019195244"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p184504195242">checkpoint</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p24501719162410">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b56042536381">CHECKPOINT</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row11450121922417"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1045011942416">barrier</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p64502197240">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b1727714116399">BARRIER</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row204511019202410"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p1545113192247">cleanconn</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p15451181911249">Indicates that the <strong id="EN-US_TOPIC_0000001233430203__b635015184405">CLEAN CONNECTION</strong> operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row10452919102419"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p128107453113">seclabel</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p88464815229">Indicates that security label operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row15558103932010"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p355813912017">notify</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p108471683224">Indicates that the notification operations are audited.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__row107861220344"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__p18705516921">load</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__p38470812210">Indicates that the loading operations are audited.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001233430203__table8621433112613"></a><a name="table8621433112613"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233430203__table8621433112613" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Audit types</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row760113661818"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.5.7.2.3.1.1"><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p86013631812">Audit type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.5.7.2.3.1.2"><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p7609366188">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row46133614189"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p741464135718">audit_open/audit_close</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p206153614187">Indicates that the audit type is operations enabling or disabling audit logs.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row146103611814"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p183708268314">user_login/user_logout</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p156123620181">Indicates that the audit type is operations and users with successful login/logout.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row76123619182"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p15611367187">system_start/system_stop/system_recover/system_switch</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p961163641818">Indicates that the audit type is system startup, shutdown, and instance switchover.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row361173614182"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p9621362188">sql_wait/sql_parse</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p106243611818">Indicates that the audit type is SQL statement parsing.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row1262143621812"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p7144204021419">lock_user/unlock_user</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p146218367181">Indicates that the audit type is successful user locking and unlocking.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row662123671817"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p136263661813">grant_role/grant__role</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_li19689410112617p0">Indicates that the audit type is user permission granting and revoking.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row86211364186"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1962113611188">user_violation</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_li933817239206p0">Indicates that the audit type is unauthorized user access operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row230220453218"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p730374572117">ddl_<em id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_i15121278517815">database_object</em></p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p156507179184">Indicates that successful DDL operations are audited. DDL operations are controlled at a fine granularity based on operation objects. Therefore, <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b1857011885710">audit_system_object</strong> is used to control the objects whose DDL operations are to be audited. (The audit function takes effect as long as <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b6571178185714">audit_system_object</strong> is configured, no matter whether <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b14571887573">ddl</strong> is set.)</p>
<p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1552616209575">For example, <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b15317658597815">ddl_sequence</strong> indicates that the audit type is sequence-related operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row3466453102119"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p17461258104812">dml_action_insert/dml_action_delete/dml_action_update/dml_action_merge/dml_action_select</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1466453192116">Indicates that the audit type is DML operations such as <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b10562474307815">INSERT</strong>, <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b6654719627815">DELETE</strong>, <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b1717188837815">UPDATE</strong>, and <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b10604028797815">MERGE</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row134981858122110"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1865021711811">internal_event</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1549811589213">Indicates that the audit type is internal events.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row10812123172217"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p3650417161811">user_func</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_li78008502277p0">Indicates that the audit type is user-defined functions, stored procedures, or anonymous block operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row128121038229"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p19650817141810">special_func</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p78131362210">Indicates that the audit type is special function invocation. Special functions include <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b10638236047815">pg_terminate_backend</strong> and <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b3710774047815">pg_cancel_backen</strong>d.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row145158852211"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1965071721817">copy_to/copy_from</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1419551712302">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b4346578217815">COPY</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row57341479242"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p14446152151113">set_parameter</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p4257122117302">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b4294839007815">SET</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row1735347132412"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1065019170185">trans_begin/trans_commit/trans_prepare/trans_rollback_to/trans_release/trans_savepoint/trans_commit_prepare/trans_rollback_prepare/trans_rollback</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p8613256303">Indicates that the audit type is transaction-related operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row16735104782416"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1565016171181">vacuum/vacuum_full/vacuum_merge</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p2338202973010">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b12428706457815">VACUUM</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row3669155319248"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1165091714180">analyze/analyze_verify</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p13723173318306">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b19532339105711">ANALYZE</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row167018536249"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p2707429183815">cursor_declare/cursor_move/cursor_fetch/cursor_close</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p114904387301">Indicates that the audit type is cursor-related operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row367045314243"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p179781345183418">codeblock_execute</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p2049131183117">Indicates that the audit type is anonymous blocks.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row46711753122412"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p166501917201819">explain</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p23923252314">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b13430237107815">EXPLAIN</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row11671153142419"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p19650171716180">show</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p0177290316">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b3679557917815">SHOW</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row1551616810227"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p265081791816">lock_table</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p11427203212313">Indicates that the audit type is table locking operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row951678202215"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p16650317171812">comment</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p10401173633118">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b14530573197815">COMMENT</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row8516118172216"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p19650171731817">prepare/execute/deallocate</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1068813403315">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b8861555347815">PREPARE</strong>, <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b6034664557815">EXECUTE</strong>, or <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b14613674127815">DEALLOCATE</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row447983002320"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p2650171711186">cluster</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p8603114723119">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b6766295797815">CLUSTER</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row04809301238"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p26501617151819">constraints</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p10511752123120">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b11012795557815">CONSTRAINTS</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row14481430122310"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1651191713186">checkpoint</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p15234135615319">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b7095069547815">CHECKPOINT</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row1481183011235"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p15651151710185">barrier</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p12853120123215">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b15843674567815">BARRIER</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row54821830112319"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p655181172614">cleanconn</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p195270718325">Indicates that the audit type is <strong id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_b4493556077815">CLEAN CONNECTION</strong> operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row1055714814268"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p765114175181">seclabel</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p1932913157815">Indicates that the audit type is security label operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row12557164822619"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p76511717131814">notify</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p55571348182611">Indicates that the audit type is notification operations.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_row255794872616"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.7.2.3.1.1 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p9651317181810">load</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.5.7.2.3.1.2 "><p id="EN-US_TOPIC_0000001233430203__en-us_topic_0000001145910711_p655884842615">Indicates that the audit type is loading operations.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430203__section554771410319"><h4 class="sectiontitle">pgxc_query_audit()</h4><p id="EN-US_TOPIC_0000001233430203__p162865199311">Description: Displays audit logs of all CNs.</p>
<p id="EN-US_TOPIC_0000001233430203__p19286719163114">Return type: record</p>
<p id="EN-US_TOPIC_0000001233430203__p192861519183119">The return fields of this function are the same as those of the <a href="#EN-US_TOPIC_0000001233430203__section149875462317">pg_query_audit()</a> function.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430203__section18983429123115"><h4 class="sectiontitle">pg_delete_audit()</h4><p id="EN-US_TOPIC_0000001233430203__lines779183313117">Description: Deletes audit logs in a specified period.<br>
Return type: void</p>
<div class="note" id="EN-US_TOPIC_0000001233430203__note7801183183215"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233430203__p108015373218">For database security concerns, this function is unavailable. If you call it, the following message is displayed: "ERROR: For security purposes, it is not allowed to manually delete audit logs."</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430203__screen1453534616166"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_delete_audit</span><span class="p">(</span><span class="s1">'2023-01-10 17:00:00'</span><span class="p">,</span><span class="s1">'2023-01-10 19:00:00'</span><span class="p">);</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="k">For</span><span class="w"> </span><span class="k">security</span><span class="w"> </span><span class="n">purposes</span><span class="p">,</span><span class="w"> </span><span class="n">it</span><span class="w"> </span><span class="k">is</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="n">allowed</span><span class="w"> </span><span class="k">to</span><span class="w"> </span><span class="n">manually</span><span class="w"> </span><span class="k">delete</span><span class="w"> </span><span class="n">audit</span><span class="w"> </span><span class="n">logs</span>
</pre></div></td></tr></table></div>
</div>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0027.html">Functions and Operators</a></div>
</div>
</div>