forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
70 lines
7.4 KiB
HTML
70 lines
7.4 KiB
HTML
<a name="EN-US_TOPIC_0000001145694681"></a><a name="EN-US_TOPIC_0000001145694681"></a>
|
|
|
|
<h1 class="topictitle1">PG_OBJECT</h1>
|
|
<div id="body1578903756456"><p id="EN-US_TOPIC_0000001145694681__p12064424231"><strong id="EN-US_TOPIC_0000001145694681__b26531639135612">PG_OBJECT</strong> records the user creation, creation time, last modification time, and last analyzing time of objects of specified types (types existing in <strong id="EN-US_TOPIC_0000001145694681__b138684478561">object_type</strong>).</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145694681__table420654232319" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_OBJECT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145694681__row320619426232"><th align="left" class="cellrowborder" valign="top" width="20.13%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145694681__p920634202315">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.669999999999998%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145694681__p12206942192317">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.2%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145694681__p15206342152312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145694681__row220624216238"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p7206124213231">object_oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p820611425234">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p13207042122311">Object identifier.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694681__row1220714242320"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p20207642132318">object_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p016516202817">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p220864252312">Object type:</p>
|
|
<ul id="EN-US_TOPIC_0000001145694681__ul16271134413173"><li id="EN-US_TOPIC_0000001145694681__li427118449179"><strong id="EN-US_TOPIC_0000001145694681__b11264556758">r</strong> indicates a table, which can be an ordinary table or a temporary table.</li><li id="EN-US_TOPIC_0000001145694681__li1272164415178"><strong id="EN-US_TOPIC_0000001145694681__b842352706192959">i</strong> indicates an index.</li><li id="EN-US_TOPIC_0000001145694681__li1427264461716"><strong id="EN-US_TOPIC_0000001145694681__b84235270619301">s</strong> indicates a sequence.</li><li id="EN-US_TOPIC_0000001145694681__li172725441173"><strong id="EN-US_TOPIC_0000001145694681__b842352706193010">v</strong> indicates a view.</li><li id="EN-US_TOPIC_0000001145694681__li327264413171"><strong id="EN-US_TOPIC_0000001145694681__b737665935712">p</strong> indicates a stored procedure and function.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694681__row192084426233"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p16208642122310">creator</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p1020810424232">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p15208442202318">ID of the creator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694681__row6208104232316"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p10208104282311">ctime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p14208104242317">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p888915209146">Object creation time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694681__row380875614447"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p19808656124420">mtime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p080817566443">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p178081056134415">Time when the object was last modified. By default, the <strong id="EN-US_TOPIC_0000001145694681__b451552620">ALTER</strong>, <strong id="EN-US_TOPIC_0000001145694681__b25212511613">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001145694681__b17521051616">GRANT</strong>, <strong id="EN-US_TOPIC_0000001145694681__b10539425264">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001145694681__b65245860">TRUNCATE</strong> operations are recorded.</p>
|
|
<p id="EN-US_TOPIC_0000001145694681__p143001615920">If <strong id="EN-US_TOPIC_0000001145694681__b181491243767">light_object_mtime</strong> is configured for <a href="dws_04_0945.html#EN-US_TOPIC_0000001099134808__section1980124735516">behavior_compat_options</a>, the <strong id="EN-US_TOPIC_0000001145694681__b724661610710">GRANT</strong>, <strong id="EN-US_TOPIC_0000001145694681__b17246111612714">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001145694681__b624641615720">TRUNCATE</strong> operations are not recorded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694681__row951194824614"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694681__p742314214550">last_analyze_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.669999999999998%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694681__p1842332112557">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.2%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694681__p13423321135511">Time when an object is analyzed for the last time.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="notice" id="EN-US_TOPIC_0000001145694681__note12762113710504"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001145694681__ul77841512155013"><li id="EN-US_TOPIC_0000001145694681__li127853126501">Only normal user operations are recorded. Operations before the object upgrade and during the <strong id="EN-US_TOPIC_0000001145694681__b5101513114720">initdb</strong> process cannot be recorded.</li><li id="EN-US_TOPIC_0000001145694681__li15510315115015"><strong id="EN-US_TOPIC_0000001145694681__b1376219276477">ctime</strong> and <strong id="EN-US_TOPIC_0000001145694681__b13496173111479">mtime</strong> are the start time of the transaction.</li><li id="EN-US_TOPIC_0000001145694681__li1786321718505">The time of object modification due to capacity expansion is also recorded.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|