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>
422 lines
48 KiB
HTML
422 lines
48 KiB
HTML
<a name="EN-US_TOPIC_0000001188163780"></a><a name="EN-US_TOPIC_0000001188163780"></a>
|
|
|
|
<h1 class="topictitle1">PG_CLASS</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188163780__a2c6d6532ba664f6994040db4284fc46f"><strong id="EN-US_TOPIC_0000001188163780__b154121912112112">PG_CLASS</strong> records database objects and their relations.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188163780__t3abfd6e441eb45a4bfc3db39f4c6b753" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_CLASS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188163780__r56455170e6c541e0bf052684a982eae0"><th align="left" class="cellrowborder" valign="top" width="22.2%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188163780__af63c1b4260e4464db037c2b0381864ee"><strong id="EN-US_TOPIC_0000001188163780__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.41%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001188163780__a499c9987098a4f9bb4555adbea992070">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65.39%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188163780__ab6d031bc5cb3484ebaaf209d27c2a288">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188163780__r95a4cc4a35a945ec95426c2e81fd9771"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a8909e8bbe334492f990b66cad3fda8bc">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__ae4e113358c424a6c80fac62077e8b8b0">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a2acd0a78a2394916a6d9cb506563e32f">Row identifier (hidden attribute; must be explicitly selected)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r7e669baa61124bdcb06a3dae9944b21d"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ac2b06a575a1b40259b97a14c41bfb1d4">relname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a91d9f0a668694574aa02554c4ce465fe">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__adbba51aa8f58427d829aac35e6d1eb24">Name of an object, such as a table, index, or view</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r4faa80d480ea465c87c71166e009cf1f"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a2be2751933bd44caac5033f221bd8654">relnamespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a0c93c7d448ed444ca7163eb698550cac">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__ab5ec55fae8cd402bb27147377f27a0b1">OID of the namespace that contains the relationship</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r409594f5d3ec4abb9bcf26bcd8cb10e4"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a352e9d337dce401589a39da54de8f2ab">reltype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__ac8a5c059e06d48df97ddf1e1824f0218">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__ae6390a7d2ac948189033f613be89ce4a">Data type that corresponds to this table's row type (the index is 0 because the index does not have <strong id="EN-US_TOPIC_0000001188163780__b71317610128">pg_type</strong> record)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra89a5b8e2fc5489db3b6be61314e9200"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a05c7605aded84dfab68a34582a8915a5">reloftype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__af064542cd97c4f6f8a4946c5a6c51f32">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a2e8913f9249e4c48ac4c46e134f74829">OID is of composite type. <strong id="EN-US_TOPIC_0000001188163780__b84235270619231">0</strong> indicates other types.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__re0123a072d9d4bc694d4d7e9f866c0cf"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a8f58bdaa1a224bd488c2df5f8d478dba">relowner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a458f77623fa74b31bf691de72a6f6d5c">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__aad8cb82f362647ec9b996df220ca370c">Owner of the relationship</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r0b01cd5574f4497490a7b3a586c5e3a1"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ac767044dbf604c2e966293bf00c0b7df">relam</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7c5f77e5f6b149d780ce12447e1254e2">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a6b675377c28a49c3954a8fdab9c80fbb">Specifies the access method used, such as B-tree and hash, if this is an index</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r7f84a8eeb598436b99e3c44990ce2956"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a354539aa002f482087bfb8aeed18cd5e">relfilenode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a9b651a461d7145e7b59df6824a4c8e8f">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a97e1f0ed04b14bce85d1db4d1ce108d7">Name of the on-disk file of this relationship. If such file does not exist, the value is <strong id="EN-US_TOPIC_0000001188163780__b84235270619236">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rdb98e820c8074d1897ef09023d5e098f"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__af34f77759a7a4725957deaae3448943e">reltablespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7b4eb01f14444bc7acad922cb8241813">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__aca972095c13b4885ab7ec9b521c98026">Tablespace in which this relationship is stored. If its value is <strong id="EN-US_TOPIC_0000001188163780__b842352706192832">0</strong>, the default tablespace in this database is used. This column is meaningless if the relationship has no on-disk file.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rcbf4526a88794e9f916cd39bed0090c1"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a4ea52ab7fa6b44368ad6057a24ff8aa7">relpages</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__aeb3b10ad616944399f0c4f5ac9d00dd3">double precision</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a523fb7f4814d47e2b0940d2f90ae8344">Size of the on-disk representation of this table in pages (of size BLCKSZ). This is only an estimate used by the optimizer.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r614bf6c39f76469d9878867dc52b914e"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a1e24bd374b4040849b7d41f16561a206">reltuples</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__af93a90a5c6924fc0a51f513df5b4c05e">double precision</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a2245f1e94e5e4d038bb9a9991361a278">Number of rows in the table. This is only an estimate used by the optimizer.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__re005e26440844d2e91d28efc7fcd9f2b"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ad98cf3830c5046fc8b84ddd502cd758d">relallvisible</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7ff5581e3dab400c864ebbb70bc1f564">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a85401fdf80d24d98b32799ee4fc01a5a">Number of pages marked as all visible in the table. This column is used by the optimizer for optimizing SQL execution. It is updated by <strong id="EN-US_TOPIC_0000001188163780__b1584811279114">VACUUM</strong>, <strong id="EN-US_TOPIC_0000001188163780__b1259715290113">ANALYZE</strong>, and a few DDL statements such as <strong id="EN-US_TOPIC_0000001188163780__b1914143912110">CREATE INDEX</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r4c43685209564cea8d751ef80e0f446a"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a52432cda8b184aef9ffb820b5a476508">reltoastrelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7e50f314b33742748a568768dd6debea">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a2696410d53084d5e91fba2ca355ae2b6">OID of the TOAST table associated with this table. The OID is 0 if no TOAST table exists.</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__a72e0a2dcd155485da3ef243d32c339ba">The TOAST table stores large columns "offline" in a secondary table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r0ed1799100994f8db3ed709cf62a4280"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ad2dc67a32fa544248d216ed97f012ca6">reltoastidxid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__aaff62fc4378347b4903836f97b2ed665">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__af09ce660c97441df99720bd4b24a6e1b">OID of the index for a TOAST table. The OID is 0 for a table other than a TOAST table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__re0456ffc16d549cf83e0a8ad207df88a"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a57513ed7b74647bda07b789642bc8b8c">reldeltarelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a1b89a4e78fb34120b1d4170d0edb3a5b">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__p51161450161111">OID of a Delta table</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__aea669501a1da4f7b95b5f0ab80ff1d14">Delta tables belong to column-store tables. They store long tail data generated during data import.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r9624b5abe1a4476783df5f1dee54ab10"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a077b8ac34d93441db6617ff7cb3ae690">reldeltaidx</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a2644741f410545dd8030f3f23ff1d4bc">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__abc964661840f4f58b40333804d26d82f">OID of the index for a Delta table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra508dc5eead641f6a2aa1f8da92ffbf1"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a0d14842ea7c1401c9b315e886f9b2b2c">relcudescrelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a5efb33b2b60e424cbdc873ed8bb028b6">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__aca3c70f131bf45bebfeef179c76e5db4">OID of a CU description table</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__p9625121010391">CU description tables (Desc tables) belong to column-store tables. They control whether storage data in the HDFS table directory is visible.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r4cea1cbd60e844a28e08b6bb5b494b1c"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a44e04b3cffa9482bb26652183e619175">relcudescidx</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a6efea5fe26ce43f3ad251ca73d0a81b3">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a6bcd3b78871a47d497112564d3915b50">OID of the index for a CU description table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r63b5556cf3324b45af956e763cc28c39"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ae2f87cb035044d18a5815e8f8d436c02">relhasindex</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__ad4db28b8af1c49aa82da455ea74feceb"><span id="EN-US_TOPIC_0000001188163780__text11412540173111">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a7e16ce865dee4475ac79aa9fc9b28ede">Its value is <strong id="EN-US_TOPIC_0000001188163780__b84235270617185">true</strong> if this column is a table and has (or recently had) at least one index.</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__a9f1687c8933844d0bb6d86f53965706b">It is set by <strong id="EN-US_TOPIC_0000001188163780__b20643641216">CREATE INDEX</strong> but is not immediately cleared by <strong id="EN-US_TOPIC_0000001188163780__b764762127">DROP INDEX</strong>. If the <strong id="EN-US_TOPIC_0000001188163780__b6646671217">VACUUM</strong> process detects that a table has no index, it clears the <strong id="EN-US_TOPIC_0000001188163780__b156420619123">relhasindex</strong> column and sets the value to <strong id="EN-US_TOPIC_0000001188163780__b842352706171759">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r0922c4e2a0d847eeb71e9d728b060d88"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a5dbf32e63cef417caac5ba949234ce43">relisshared</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__aa0375bb370034e6e92453f208d1d9f7b"><span id="EN-US_TOPIC_0000001188163780__text1717183818318">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a50faabf589af4af9aef7104a1c6a80b4">Its value is <strong id="EN-US_TOPIC_0000001188163780__b842352706192719">true</strong> if the table is shared across all databases in the cluster. Only certain system catalogs (such as <strong id="EN-US_TOPIC_0000001188163780__b84235270616831">pg_database</strong>) are shared.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra3dcbc671f9246ebbf6ab3fd7ee78936"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a77510db5230042f8a02aff39d918069a">relpersistence</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a8804a2f314e9435c85d7c23309c3250b">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001188163780__ue45793e1e5a840aaa9bd4900df5635d2"><li id="EN-US_TOPIC_0000001188163780__led0cfa216cd14c3d809f1c407e265f1f"><strong id="EN-US_TOPIC_0000001188163780__b842352706192353">p</strong> indicates a permanent table.</li><li id="EN-US_TOPIC_0000001188163780__le5116ccf9ce849fe8a5b3f69ff092818"><strong id="EN-US_TOPIC_0000001188163780__b842352706192856">u</strong> indicates a non-log table.</li><li id="EN-US_TOPIC_0000001188163780__l18eed6eda3b94681aa49d842ee0d1c8d"><strong id="EN-US_TOPIC_0000001188163780__b84235270619290">t</strong> indicates a temporary table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r8a356531a1294b57aaf7deba8c555955"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a156c5044042e49f0b4a7fbf3a18b240c">relkind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a9bc87e2485294fee9c4f74744811c7e1">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001188163780__u93a5b96a52dc4a3489e42d16a9665f00"><li id="EN-US_TOPIC_0000001188163780__l51f4aa16e6a8446a9c4dc1ff3ddf123f"><strong id="EN-US_TOPIC_0000001188163780__b842352706192913">r</strong> indicates an ordinary table.</li><li id="EN-US_TOPIC_0000001188163780__lde9e799302d942408fc7f0ac9c0ef896"><strong id="EN-US_TOPIC_0000001188163780__b842352706192959">i</strong> indicates an index.</li><li id="EN-US_TOPIC_0000001188163780__l98b34cf5f20a45ce8bca3fd2c6b7180a"><strong id="EN-US_TOPIC_0000001188163780__b84235270619301">S</strong> indicates a sequence.</li><li id="EN-US_TOPIC_0000001188163780__l22b215a7791b4562a17caa43cfe8577f"><strong id="EN-US_TOPIC_0000001188163780__b842352706193010">v</strong> indicates a view.</li><li id="EN-US_TOPIC_0000001188163780__li1526073392218"><strong id="EN-US_TOPIC_0000001188163780__b842352706193013">c</strong> indicates the composite type.</li><li id="EN-US_TOPIC_0000001188163780__l98d1d1eefaee4294845aa6971f19f733"><strong id="EN-US_TOPIC_0000001188163780__b842352706193019">t</strong> indicates a TOAST table.</li><li id="EN-US_TOPIC_0000001188163780__li1685532317"><strong id="EN-US_TOPIC_0000001188163780__b84235270618488">f</strong> indicates a foreign table.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r352e13a84aa34375877584114af9ab17"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a208acc5e88f847fa87a1d73525bf18ba">relnatts</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a90cc0ef5aca140aa98bf7e570da19b7d">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a6bf5fe552e1e4479900b13bb5c371bf8">Number of user columns in the relationship (excluding system columns) <strong id="EN-US_TOPIC_0000001188163780__b10874601212">pg_attribute</strong> has the same number of rows corresponding to the user columns.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r0637f68d63bc40e09a6ead1cc7ed2fd4"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ae0ba79beacdc47baa9650a8fddf2f2e4">relchecks</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a3958fc7559c64dadbcf8f6ad00e10d53">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a25ffbd5694ee49e89a6d8b27d60a1e8e">Number of constraints on a table. For details, see <a href="dws_04_0580.html">PG_CONSTRAINT</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rf1013ac8812a4946b92b7922cb4e6249"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__af8aa009b31bc4a58a88d1a3f9b51ec6d">relhasoids</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a8060f4746b5c4c179a438323515647fe"><span id="EN-US_TOPIC_0000001188163780__text12891640113116">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a9513c14fa1fe4b569795be600e71ab94">Its value is <strong id="EN-US_TOPIC_0000001188163780__b842352706192730">true</strong> if an OID is generated for each row of the relationship.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r53f0841afed24bccbc1ef3d45f17b7d4"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a527c4b8b6c2c4ae49fcf4b5824681227">relhaspkey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a43564ab9937f436a90377937c7593ec5"><span id="EN-US_TOPIC_0000001188163780__text1487616408318">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a134f7bef4ced417a8783940b4369ef89">Its value is <strong id="EN-US_TOPIC_0000001188163780__b842352706192732">true</strong> if the table has (or once had) a primary key.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rf956b3972d9b483a99cfbefad3dbd626"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__aea3848d7cee4489989514847bdaa122d">relhasrules</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a0fc4f1a1c3b545159f8d3dc108511feb"><span id="EN-US_TOPIC_0000001188163780__text11597164143114">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__ab037d9999ecb402e91b793dec7188497">Its value is <strong id="EN-US_TOPIC_0000001188163780__b1459754198211550">true</strong> if the table has rules. See table <a href="dws_04_0614.html">PG_REWRITE</a> to check whether it has rules.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__raebb657c5c5c48c9849d123401293dd4"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a8c8b30cef36b4ff8a9d2ed86073b2685">relhastriggers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__af68d517dbcd24dea8ed9b3a2d7fb2452"><span id="EN-US_TOPIC_0000001188163780__text833110423319">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__aaf2eac245d774330b013af79c34a5b07">Its value is <strong id="EN-US_TOPIC_0000001188163780__b10696534411">true</strong> if the table has (or once had) triggers. For details, see <a href="dws_04_0623.html">PG_TRIGGER</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rd9f3ecd0da1248409b96ed1bd7aeb163"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a72f2b7b2210648edbf694c8515525513">relhassubclass</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a4e3b7cd2c22e47c7a342867ce1eded05"><span id="EN-US_TOPIC_0000001188163780__text113759438319">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a629cab9c032a4f4d86a57084a4744495">Its value is <strong id="EN-US_TOPIC_0000001188163780__b842352706192737">true</strong> if the table has (or once had) any inheritance child table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r4641535c210841a7a6086be5be083ccc"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a838b6763224d47f7899ea27abc990067">relcmprs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a00cf97c56dd24b8282e3fb8494c252ac">tinyint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__abef964eed3354024a805495d21f9ec36">Whether the compression feature is enabled for the table. Note that only batch insertion triggers compression so ordinary CRUD does not trigger compression.</p>
|
|
<ul id="EN-US_TOPIC_0000001188163780__u242f533ed82c43f889d0c3262f315cdc"><li id="EN-US_TOPIC_0000001188163780__la11dab05e6f7472d9fd16507fa6b2f94"><strong id="EN-US_TOPIC_0000001188163780__b84235270619318">0</strong> indicates other tables that do not support compression (primarily system tables, on which the compression attribute cannot be modified).</li><li id="EN-US_TOPIC_0000001188163780__l3c8655b58a9545dfb93986ff978f0cc4"><strong id="EN-US_TOPIC_0000001188163780__b842352706193111">1</strong> indicates that the compression feature of the table data is NOCOMPRESS or has no specified keyword.</li><li id="EN-US_TOPIC_0000001188163780__l49bee5e1f8cf42fabf819b19050129a2"><strong id="EN-US_TOPIC_0000001188163780__b842352706193114">2</strong> indicates that the compression feature of the table data is COMPRESS.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rf290a28962b64610a2c27288b02ba5f4"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a6b90233b26c641f2bd059a61c9a523d8">relhasclusterkey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__aeecb67bc1eae490fab430bd36a7a6acb"><span id="EN-US_TOPIC_0000001188163780__text54982463312">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__afbfae390b44041b8b974bbb8a738263e">Whether the local cluster storage is used</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__re3787a806d0b4547a3cce834770edf51"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__ace55e7182b024a61913e25b6f4cf2a52">relrowmovement</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__ade964aa78e544e2d9f1d5366bb692ea6"><span id="EN-US_TOPIC_0000001188163780__text1093775019311">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a5e728c72fca24f8ca8a184c8d98c0928">Whether the row migration is allowed when the partitioned table is updated</p>
|
|
<ul id="EN-US_TOPIC_0000001188163780__ua2fac4615f7c411fae40a64931f4f4ea"><li id="EN-US_TOPIC_0000001188163780__l13772e8b62744ae8be5788929bdbbe50"><strong id="EN-US_TOPIC_0000001188163780__b842352706193133">true</strong> indicates that the row migration is allowed.</li><li id="EN-US_TOPIC_0000001188163780__l380b94fbfb134485988448da44710224"><strong id="EN-US_TOPIC_0000001188163780__b842352706193138">false</strong> indicates that the row migration is not allowed.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rbaa4acdf21754291bd6f6ea369574c67"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a7227e6c44e3a475fba38c34e7d6ebc7a">parttype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7ca3eafd77864872a326c8efa77d5142">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a6792eaf1c15a4933bb5b1b0ad667ef36">Whether the table or index has the property of a partitioned table</p>
|
|
<ul id="EN-US_TOPIC_0000001188163780__u9362650a5ed746e1860c873b7697b409"><li id="EN-US_TOPIC_0000001188163780__l3713b9ef8ab949c0b9b358d94aeea79f"><strong id="EN-US_TOPIC_0000001188163780__b842352706193144">p</strong> indicates that the table or index has the property of a partitioned table.</li><li id="EN-US_TOPIC_0000001188163780__l3ab2826b8ec544d2a607f0ef53b639d5"><strong id="EN-US_TOPIC_0000001188163780__b842352706193147">n</strong> indicates that the table or index does not have the property of a partitioned table.</li><li id="EN-US_TOPIC_0000001188163780__l14b88bcf6b4440a9a66ec153839043a0"><strong id="EN-US_TOPIC_0000001188163780__b842352706193149">v</strong> indicates that the table is the value partitioned table in the HDFS.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r20ff302b0432416cb48ce49b5426dd94"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a9b34601ddc55407bb87ac98fdc4cb6ba">relfrozenxid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7ee061a69a73449aa3dba111fed5fa9f">xid32</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__p19698102273214">All transaction IDs before this one have been replaced with a permanent ("frozen") transaction ID in this table. This column is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound (or to allow <strong id="EN-US_TOPIC_0000001188163780__b32441523104110">pg_clog</strong> to be shrunk). The value is 0 (<strong id="EN-US_TOPIC_0000001188163780__b728112514111">InvalidTransactionId</strong>) if the relationship is not a table.</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__a363679cca57f4c2197378fcd83849be6">To ensure forward compatibility, this column is reserved. The <strong id="EN-US_TOPIC_0000001188163780__b252724884113">relfrozenxid64</strong> column is added to record the information.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rd39a73f185de4fe5bbf664d37ea80f5d"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a156bcf0cbcba41649ec88908f15d5d2d">relacl</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a5fbfff6ec39042df9af7d660782b2492">aclitem[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__abc4a4e36a7404a7681644fcafc54d348">Access permissions</p>
|
|
<p id="EN-US_TOPIC_0000001188163780__aae6bed04101a4dce8abc870a1439f378">The command output of the query is as follows:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__s905a21acaa034c63ab20b33328db7cbe"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">rolename</span><span class="o">=</span><span class="n">xxxx</span><span class="o">/</span><span class="n">yyyy</span><span class="w"> </span><span class="c1">--Assigning privileges to a role</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__s443cea808ba64de195bd6958bde94ac1"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="o">=</span><span class="n">xxxx</span><span class="o">/</span><span class="n">yyyy</span><span class="w"> </span><span class="c1">--Assigning the permission to public</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188163780__a169ad8d45b8142a3b14eb004dc62dc59"><em id="EN-US_TOPIC_0000001188163780__i11295617194719">xxxx</em> indicates the assigned privileges, and <em id="EN-US_TOPIC_0000001188163780__i18300201734711">yyyy</em> indicates the roles that are assigned to the privileges. For details about permission descriptions, see <a href="#EN-US_TOPIC_0000001188163780__teb11e17087cf4090985c04b03f3e2336">Table 2</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r3ea33b4a38ee401ca11f4ef373a69720"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__a123b125b9ce24be481c290254efbba80">reloptions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__a29265b5964ec4d5793721425cbdb1152">text[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__a6151ac43d4b3405d963bb90a6d687a91">Access-method-specific options, as "keyword=value" strings</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__row11845015339"><td class="cellrowborder" valign="top" width="22.2%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163780__p1918516011336">relfrozenxid64</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.41%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163780__p18185509339">xid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65.39%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163780__p171281349143316">All transaction IDs before this one have been replaced with a permanent ("frozen") transaction ID in this table. This column is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound (or to allow <strong id="EN-US_TOPIC_0000001188163780__b98791005424">pg_clog</strong> to be shrunk). The value is 0 (<strong id="EN-US_TOPIC_0000001188163780__b168901564425">InvalidTransactionId</strong>) if the relationship is not a table.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188163780__teb11e17087cf4090985c04b03f3e2336"></a><a name="teb11e17087cf4090985c04b03f3e2336"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188163780__teb11e17087cf4090985c04b03f3e2336" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Description of privileges</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188163780__r337cfc46846a4094ada9f7b2647f37b4"><th align="left" class="cellrowborder" valign="top" width="27.87%" id="mcps1.3.3.2.3.1.1"><p id="EN-US_TOPIC_0000001188163780__aa09cc9dcdf2a4660a75ecf6ee3bdc544">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="72.13000000000001%" id="mcps1.3.3.2.3.1.2"><p id="EN-US_TOPIC_0000001188163780__a9868b88d02b344dd94f1a66082fee4a7">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188163780__r08a97a3636b547dbb234074006f7e283"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a8116297e3c4b4bb7a70a41ce3a6bd831">r</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a4efa0f431659428c8957f4f1f10a52b5">SELECT (read)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r0aaeb9b3191d441993cafeba17c0630d"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a3195bf9962d148d2b47bb14165f758bf">w</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__abddc99914d294fa0b1665d59c2009a6b">UPDATE (write)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__re8ed824db33743babc8e82eecd1cda20"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a375f346d1b164c88be889bac6af12f7f">a</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__ab86e9d5dcde64a12b6e5ca872f6b2ffa">INSERT (insert)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r5ad476944e9540aa8b9494c39e3117cb"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a4281fcbc90e946c1aaf55b333956f085">d</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a7811fe3fc7654117bffc79ebebc63e43">DELETE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r2671b5ade44c42678a8ffa4a8c643aff"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__ac929b72eeb684bb0be1291a95f6dde06">D</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a698ee478a0924e01bd8787d5c093ba2f">TRUNCATE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__r07277a720f964e8cb10710d64289c31b"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a22fed3d0e39347c4af30f11f71b3858a">x</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a93a1157c7d49461898fe1e78c121e09a">REFERENCES</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra49983ff38de41388aeceb533f745494"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a20b114127c2f4261b67838728e0b47f0">t</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__ad28f4218bbb043bba5c710eca753b15e">TRIGGER</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra09643bad0564d22a5712effe110133b"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__ad26fafd9e53d456dbef84e3ef02d71bc">X</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a2be7e831a74a40fdbfc9233e135616d1">EXECUTE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rf5fd706585c34a52ab34c38cd6ee68b3"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__af68f504ca11149919df7e00a062ffbdf">U</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a024a8545455142d6822df6a2e2b6cbf1">USAGE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__ra20c54aeb7db4c41970876e4b9b87160"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__ab1e8db5fa02e44fd9a68cef227af238c">C</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a01a1112cd1dd41b9a05681d434d2310c">CREATE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rb5508ca1dc204e11b16e9d3dde779546"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__afe8053aafa3c41c4ab7b24e82605f853">c</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__abd4e08c6ba34479397af71119a2fb036">CONNECT</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__reeca58577c3342828db7d9f6884d3eb6"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a6c50df31af954f5390a2243f632f369f">T</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a36409222e19b44b69990bc8bfc4377d7">TEMPORARY</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__row6698182012319"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__p369942092314">A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__p469932072312">ANALYZE|ANALYSE</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__row10483191916482"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__p15476145143218">L</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__p174761751143212">ALTER</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__row19439133424812"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__p152681057123218">P</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__p7268157143213">DROP</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__row1940184184816"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__p172518212336">v</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__p167259216330">VACUUM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rfba592c1bb2a40b08d487f06f0308d1a"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__af43abe8497444feda6a47c90852bd57b">arwdDxtA, vLP</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a1c315a94dadf492b9b91cc8ee9c33d1d">ALL PRIVILEGES (used for tables)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188163780__rac02ea3bd34d4992a24aea2cab364f22"><td class="cellrowborder" valign="top" width="27.87%" headers="mcps1.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001188163780__a27f23b0106a943c7b2c7a61661953085">*</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.13000000000001%" headers="mcps1.3.3.2.3.1.2 "><p id="EN-US_TOPIC_0000001188163780__a19f0c9d06de54abba80cbd2281994275">Authorization options for preceding permissions</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188163780__section1047616353919"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001188163780__p18128822671">View the OID and relfilenode of a table.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__screen157185558816"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">oid</span><span class="p">,</span><span class="n">relname</span><span class="p">,</span><span class="n">relfilenode</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_class</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">relname</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'table_name'</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188163780__p330613123014">Count row-store tables.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__screen787828173019"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="s1">'row count:'</span><span class="o">||</span><span class="k">count</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">point</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_class</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">relkind</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'r'</span><span class="w"> </span><span class="k">and</span><span class="w"> </span><span class="n">oid</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">16384</span><span class="w"> </span><span class="k">and</span><span class="w"> </span><span class="n">reloptions</span><span class="p">::</span><span class="nb">text</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="k">like</span><span class="w"> </span><span class="s1">'%column%'</span><span class="w"> </span><span class="k">and</span><span class="w"> </span><span class="n">reloptions</span><span class="p">::</span><span class="nb">text</span><span class="w"> </span><span class="k">not</span><span class="w"> </span><span class="k">like</span><span class="w"> </span><span class="s1">'%internal_mask%'</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188163780__p379995510298">Count column-store tables.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__screen10455813153018"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="s1">'column count:'</span><span class="o">||</span><span class="k">count</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">point</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_class</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">relkind</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'r'</span><span class="w"> </span><span class="k">and</span><span class="w"> </span><span class="n">oid</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">16384</span><span class="w"> </span><span class="k">and</span><span class="w"> </span><span class="n">reloptions</span><span class="p">::</span><span class="nb">text</span><span class="w"> </span><span class="k">like</span><span class="w"> </span><span class="s1">'%column%'</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188163780__p13402665512">Query the comments of all tables in the database:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188163780__screen363412291900"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">relname</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="n">tabname</span><span class="p">,</span><span class="n">obj_description</span><span class="p">(</span><span class="n">relfilenode</span><span class="p">,</span><span class="s1">'pg_class'</span><span class="p">)</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="k">comment</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_class</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</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>
|
|
|