forked from docs/doc-exports
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>
69 lines
6.9 KiB
HTML
69 lines
6.9 KiB
HTML
<a name="EN-US_TOPIC_0000001233761735"></a><a name="EN-US_TOPIC_0000001233761735"></a>
|
|
|
|
<h1 class="topictitle1">PG_OBJECT</h1>
|
|
<div id="body1578903756456"><p id="EN-US_TOPIC_0000001233761735__p12064424231"><strong id="EN-US_TOPIC_0000001233761735__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_0000001233761735__b138684478561">object_type</strong>).</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233761735__table420654232319" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_OBJECT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233761735__row320619426232"><th align="left" class="cellrowborder" valign="top" width="20.13%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p15206342152312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233761735__row220624216238"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p13207042122311">Object identifier.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761735__row1220714242320"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p220864252312">Object type:</p>
|
|
<ul id="EN-US_TOPIC_0000001233761735__ul16271134413173"><li id="EN-US_TOPIC_0000001233761735__li427118449179"><strong id="EN-US_TOPIC_0000001233761735__b11264556758">r</strong> indicates a table, which can be an ordinary table or a temporary table.</li><li id="EN-US_TOPIC_0000001233761735__li1272164415178"><strong id="EN-US_TOPIC_0000001233761735__b842352706192959">i</strong> indicates an index.</li><li id="EN-US_TOPIC_0000001233761735__li1427264461716"><strong id="EN-US_TOPIC_0000001233761735__b84235270619301">s</strong> indicates a sequence.</li><li id="EN-US_TOPIC_0000001233761735__li172725441173"><strong id="EN-US_TOPIC_0000001233761735__b842352706193010">v</strong> indicates a view.</li><li id="EN-US_TOPIC_0000001233761735__li327264413171"><strong id="EN-US_TOPIC_0000001233761735__b737665935712">p</strong> indicates a stored procedure and function.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761735__row192084426233"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p15208442202318">ID of the creator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761735__row6208104232316"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p888915209146">Object creation time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761735__row380875614447"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p134169512221">Time when the object was last modified. By default, the <strong id="EN-US_TOPIC_0000001233761735__b851395914220">ALTER</strong>, <strong id="EN-US_TOPIC_0000001233761735__b1435392132314">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001233761735__b243215913234">GRANT/REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001233761735__b102331912152317">TRUNCATE</strong> operations are recorded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761735__row951194824614"><td class="cellrowborder" valign="top" width="20.13%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761735__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_0000001233761735__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_0000001233761735__p13423321135511">Time when an object is analyzed for the last time.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="notice" id="EN-US_TOPIC_0000001233761735__note12762113710504"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001233761735__ul77841512155013"><li id="EN-US_TOPIC_0000001233761735__li127853126501">Only normal user operations are recorded. Operations before the object upgrade and during the <strong id="EN-US_TOPIC_0000001233761735__b5101513114720">initdb</strong> process cannot be recorded.</li><li id="EN-US_TOPIC_0000001233761735__li15510315115015"><strong id="EN-US_TOPIC_0000001233761735__b1376219276477">ctime</strong> and <strong id="EN-US_TOPIC_0000001233761735__b13496173111479">mtime</strong> are the start time of the transaction.</li><li id="EN-US_TOPIC_0000001233761735__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>
|
|
|