doc-exports/docs/dws/dev/dws_04_0601.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 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-11-02 09:07:47 +00:00

70 lines
7.6 KiB
HTML

<a name="EN-US_TOPIC_0000001510283341"></a><a name="EN-US_TOPIC_0000001510283341"></a>
<h1 class="topictitle1">PG_OBJECT</h1>
<div id="body1578903756456"><p id="EN-US_TOPIC_0000001510283341__p12064424231"><strong id="EN-US_TOPIC_0000001510283341__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_0000001510283341__b138684478561">object_type</strong>).</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510283341__table420654232319" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_OBJECT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510283341__row320619426232"><th align="left" class="cellrowborder" valign="top" width="20.13%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p15206342152312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510283341__row220624216238"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p13207042122311">Object identifier.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283341__row1220714242320"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p220864252312">Object type:</p>
<ul id="EN-US_TOPIC_0000001510283341__ul16271134413173"><li id="EN-US_TOPIC_0000001510283341__li427118449179"><strong id="EN-US_TOPIC_0000001510283341__b11264556758">r</strong> indicates a table, which can be an ordinary table or a temporary table.</li><li id="EN-US_TOPIC_0000001510283341__li1272164415178"><strong id="EN-US_TOPIC_0000001510283341__b842352706192959">i</strong> indicates an index.</li><li id="EN-US_TOPIC_0000001510283341__li1427264461716"><strong id="EN-US_TOPIC_0000001510283341__b84235270619301">s</strong> indicates a sequence.</li><li id="EN-US_TOPIC_0000001510283341__li172725441173"><strong id="EN-US_TOPIC_0000001510283341__b842352706193010">v</strong> indicates a view.</li><li id="EN-US_TOPIC_0000001510283341__li327264413171"><strong id="EN-US_TOPIC_0000001510283341__b737665935712">p</strong> indicates a stored procedure and function.</li><li id="EN-US_TOPIC_0000001510283341__li342732972414"><strong id="EN-US_TOPIC_0000001510283341__b193858253142445">f</strong> indicates a foreign table.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283341__row192084426233"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p15208442202318">ID of the creator.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283341__row6208104232316"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p888915209146">Object creation time.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283341__row380875614447"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p134169512221">Time when the object was last modified. By default, the <strong id="EN-US_TOPIC_0000001510283341__b851395914220">ALTER</strong>, <strong id="EN-US_TOPIC_0000001510283341__b1435392132314">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001510283341__b243215913234">GRANT/REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001510283341__b102331912152317">TRUNCATE</strong> operations are recorded.</p>
<p id="EN-US_TOPIC_0000001510283341__p8804122765818"><strong id="EN-US_TOPIC_0000001510283341__b1095615592285">object_mtime_record_mode</strong> can be used to control whether <strong id="EN-US_TOPIC_0000001510283341__b15773184714416">ALTER</strong>, <strong id="EN-US_TOPIC_0000001510283341__b036519511412">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001510283341__b2519125820416">GRANT</strong>/<strong id="EN-US_TOPIC_0000001510283341__b9931921853">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001510283341__b1131427851">TRUNCATE</strong> operations are recorded.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510283341__row951194824614"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510283341__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_0000001510283341__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_0000001510283341__p13423321135511">Time when an object is analyzed for the last time.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="notice" id="EN-US_TOPIC_0000001510283341__note12762113710504"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001510283341__ul77841512155013"><li id="EN-US_TOPIC_0000001510283341__li127853126501">Only normal user operations are recorded. Operations before the object upgrade and during the <strong id="EN-US_TOPIC_0000001510283341__b5101513114720">initdb</strong> process cannot be recorded.</li><li id="EN-US_TOPIC_0000001510283341__li15510315115015"><strong id="EN-US_TOPIC_0000001510283341__b1376219276477">ctime</strong> and <strong id="EN-US_TOPIC_0000001510283341__b13496173111479">mtime</strong> are the start time of the transaction.</li><li id="EN-US_TOPIC_0000001510283341__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>