doc-exports/docs/dws/dev/dws_04_0784.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
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>
2023-01-19 13:37:49 +00:00

116 lines
11 KiB
HTML

<a name="EN-US_TOPIC_0000001145894487"></a><a name="EN-US_TOPIC_0000001145894487"></a>
<h1 class="topictitle1">PG_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001145894487__en-us_topic_0059777576_p11804567514"><strong id="EN-US_TOPIC_0000001145894487__b84235270614252">PG_TABLES</strong> displays access to each table in the database.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145894487__te912502220ff455dbc6a250019db99bd" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_TABLES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145894487__rbd5ff604573d4190bf8efd8fc764dfab"><th align="left" class="cellrowborder" valign="top" width="15.000000000000002%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001145894487__a30cb25a06ade462088aa7e2642ef8171"><strong id="EN-US_TOPIC_0000001145894487__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.000000000000002%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001145894487__a8a07ab79d5c249beb6faf90076d42eb1">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001145894487__a6118fe3371204d01a54050c3dd46851e">Reference</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001145894487__ada2a98db9dbe432eb5dd6e3b8d718b10">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145894487__r239f88edcf334ee0bae509c7d19a92b5"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__abb4c8259bf664a76a7d145bf013cc31d">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a43ea6962bc4e4440aab2fb4097e2fcf7">name</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__a4a9be612208b46d8b9db032b80e9d34b"><a href="dws_04_0600.html">PG_NAMESPACE</a>.nspname</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a78c0d6e58067476e880d59f81104b8a3">Name of the schema that contains the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__r90c8d3a6709740b380ee1d629a4c2fc8"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__a3b9bd3bea2dc483ebdfdd9de0f0c5866">tablename</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__ab55bd3499ed840cbad20806f8b51f9bc">name</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__abad4c760357e464db188bcae611d69e6"><a href="dws_04_0578.html">PG_CLASS</a>.relname</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__aadd36c362263441183a77a9ea8550786">Name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__r25c5b732d739491492502693c3e102b6"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__a12ef9beb53874f538868d24e3d6a897b">tableowner</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a38b91ee992e64af9afd31641fe98e646">name</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__p3994824204515">pg_get_userbyid(<a href="dws_04_0578.html">PG_CLASS</a>.relowner)</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a55aa5b02d87a4f348ab9deb9c021921f">Owner of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__rdf75f55a4ec140cf96dc0fd61d4ca735"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__a65ba8952640741eeb493d510a284bde6">tablespace</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a84c777ea09cd4213b7dc85d119beefb1">name</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__a2ec3e4c77aa84c4fbd8900b11714334f"><a href="dws_04_0622.html">PG_TABLESPACE</a>.spcname</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a537b99f6eae54209bb64394da00e6d98">Tablespace that contains the table. The default value is null</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__r76bd7ecfbd73468fb398b381ec0364dc"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__ae95926416ebb4b90909a4ee42daf1f17">hasindexes</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a71345d585b0d433b9227400e33c55d82"><span id="EN-US_TOPIC_0000001145894487__text187902333386">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__a8dc09472dc664a158a1a733c704a276c"><a href="dws_04_0578.html">PG_CLASS</a>.relhasindex</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a89f401c489a943d6b3aec1245e903a8a">Whether the table has (or recently had) an index. If it does, its value is <strong id="EN-US_TOPIC_0000001145894487__b189027241189">true</strong>. Otherwise, its value is <strong id="EN-US_TOPIC_0000001145894487__b84235270614416">false</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__r2f0edf4db720443e8555115eb2be51a5"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__a995188c1679041199c03dfa33a76e0ce">hasrules</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a1fb3f36fbb2e49bb888118009d786f16"><span id="EN-US_TOPIC_0000001145894487__text99091236103816">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__ae14ed8eb268641fabe53303691f09cc0"><a href="dws_04_0578.html">PG_CLASS</a>.relhasruls</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a78c07708bb914d40adeb7872d0b2f58f">Whether the table has rules. If it does, its value is <strong id="EN-US_TOPIC_0000001145894487__b1790716242081">true</strong>. Otherwise, its value is <strong id="EN-US_TOPIC_0000001145894487__b103447803814426">false</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__raa78a5374dd04be980a385b92d521043"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__ac2c2bef2952e4b29afa9e28d314a7a78">hastriggers</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__a03a07d8bd1464c2d99770124933394d3"><span id="EN-US_TOPIC_0000001145894487__text19524143814385">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__a800377b7a9464986ae7da27c9b819f4c"><a href="dws_04_0578.html">PG_CLASS</a>.RELHASTRIGGERS</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__a532dec13845143d3918e4933ef89184f">Whether the table has triggers. If it does, its value is <strong id="EN-US_TOPIC_0000001145894487__b139105249816">true</strong>. Otherwise, its value is <strong id="EN-US_TOPIC_0000001145894487__b109796273914442">false</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__row2248312165"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__p2249412167">tablecreator</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__p724961131611">name</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__p1724981191613">pg_get_userbyid(<a href="dws_04_0601.html">PG_OBJECT</a>.creator)</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__p192491914162">Table creator. If the creator has been deleted, no value is returned.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__row53953751617"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__p153957716166">created</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__p239511712161">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__p439597131616"><a href="dws_04_0601.html">PG_OBJECT</a>.ctime</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__p23951778164">Time when the table was created.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894487__row126751712181615"><td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001145894487__p14675312151619">last_ddl_time</p>
</td>
<td class="cellrowborder" valign="top" width="15.000000000000002%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001145894487__p46751812101610">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001145894487__p267571220166"><a href="dws_04_0601.html">PG_OBJECT</a>.mtime</p>
</td>
<td class="cellrowborder" valign="top" width="35%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001145894487__p3675151261614">Last time when the cluster was modified.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>