forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
70 lines
7.6 KiB
HTML
70 lines
7.6 KiB
HTML
<a name="EN-US_TOPIC_0000001764491988"></a><a name="EN-US_TOPIC_0000001764491988"></a>
|
|
|
|
<h1 class="topictitle1">PG_OBJECT</h1>
|
|
<div id="body1578903756456"><p id="EN-US_TOPIC_0000001764491988__p12064424231"><strong id="EN-US_TOPIC_0000001764491988__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_0000001764491988__b138684478561">object_type</strong>).</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491988__table420654232319" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_OBJECT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764491988__row320619426232"><th align="left" class="cellrowborder" valign="top" width="20.13%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764491988__p920634202315"><strong id="EN-US_TOPIC_0000001764491988__b93487597743435">Column</strong></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_0000001764491988__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_0000001764491988__p15206342152312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001764491988__row220624216238"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p13207042122311">Object identifier.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491988__row1220714242320"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p220864252312">Object type:</p>
|
|
<ul id="EN-US_TOPIC_0000001764491988__ul16271134413173"><li id="EN-US_TOPIC_0000001764491988__li427118449179"><strong id="EN-US_TOPIC_0000001764491988__b11264556758">r</strong> indicates a table, which can be an ordinary table or a temporary table.</li><li id="EN-US_TOPIC_0000001764491988__li1272164415178"><strong id="EN-US_TOPIC_0000001764491988__b842352706192959">i</strong> indicates an index.</li><li id="EN-US_TOPIC_0000001764491988__li1427264461716"><strong id="EN-US_TOPIC_0000001764491988__b84235270619301">s</strong> indicates a sequence.</li><li id="EN-US_TOPIC_0000001764491988__li172725441173"><strong id="EN-US_TOPIC_0000001764491988__b842352706193010">v</strong> indicates a view.</li><li id="EN-US_TOPIC_0000001764491988__li327264413171"><strong id="EN-US_TOPIC_0000001764491988__b737665935712">p</strong> indicates a stored procedure and function.</li><li id="EN-US_TOPIC_0000001764491988__li342732972414"><strong id="EN-US_TOPIC_0000001764491988__b193858253142445">f</strong> indicates a foreign table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491988__row192084426233"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p15208442202318">ID of the creator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491988__row6208104232316"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p888915209146">Object creation time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491988__row380875614447"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p134169512221">Time when the object was last modified. By default, the <strong id="EN-US_TOPIC_0000001764491988__b851395914220">ALTER</strong>, <strong id="EN-US_TOPIC_0000001764491988__b1435392132314">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001764491988__b243215913234">GRANT/REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001764491988__b102331912152317">TRUNCATE</strong> operations are recorded.</p>
|
|
<p id="EN-US_TOPIC_0000001764491988__p8804122765818"><strong id="EN-US_TOPIC_0000001764491988__b1095615592285">object_mtime_record_mode</strong> can be used to control whether <strong id="EN-US_TOPIC_0000001764491988__b15773184714416">ALTER</strong>, <strong id="EN-US_TOPIC_0000001764491988__b036519511412">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001764491988__b2519125820416">GRANT</strong>/<strong id="EN-US_TOPIC_0000001764491988__b9931921853">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001764491988__b1131427851">TRUNCATE</strong> operations are recorded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491988__row951194824614"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491988__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_0000001764491988__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_0000001764491988__p13423321135511">Time when an object is analyzed for the last time.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="notice" id="EN-US_TOPIC_0000001764491988__note12762113710504"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001764491988__ul77841512155013"><li id="EN-US_TOPIC_0000001764491988__li127853126501">Only normal user operations are recorded. Operations before the object upgrade and during the <strong id="EN-US_TOPIC_0000001764491988__b27371917122810">initdb</strong> process cannot be recorded.</li><li id="EN-US_TOPIC_0000001764491988__li15510315115015"><strong id="EN-US_TOPIC_0000001764491988__b1376219276477">ctime</strong> and <strong id="EN-US_TOPIC_0000001764491988__b13496173111479">mtime</strong> are the start time of the transaction.</li><li id="EN-US_TOPIC_0000001764491988__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>
|
|
|