doc-exports/docs/dws/dev/dws_04_0617.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

55 lines
5.1 KiB
HTML

<a name="EN-US_TOPIC_0000001098655132"></a><a name="EN-US_TOPIC_0000001098655132"></a>
<h1 class="topictitle1">PG_SHDESCRIPTION</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001098655132__en-us_topic_0059779259_p192111442436"><strong id="EN-US_TOPIC_0000001098655132__b23834541817">PG_SHDESCRIPTION</strong> records optional comments for shared database objects. Descriptions can be manipulated with the <strong id="EN-US_TOPIC_0000001098655132__b84235270622053">COMMENT</strong> command and viewed with psql's <strong id="EN-US_TOPIC_0000001098655132__b842352706105459">\d</strong> commands.</p>
<p id="EN-US_TOPIC_0000001098655132__a4205dec1ceff4b42bed75ef1571b270c">See also <strong id="EN-US_TOPIC_0000001098655132__b842352706105638">PG_DESCRIPTION</strong>, which performs a similar function for descriptions involving objects within a single database. </p>
<p id="EN-US_TOPIC_0000001098655132__aa5df5f831b4247bd947a543199f96544">Unlike most system catalogs, <strong id="EN-US_TOPIC_0000001098655132__b842352706105825">PG_SHDESCRIPTION</strong> is shared across all databases of a cluster. There is only one copy of <strong id="EN-US_TOPIC_0000001098655132__b842352706105842">PG_SHDESCRIPTION</strong> per cluster, not one per database.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098655132__tdb4317dd19d14773a3740dec3988e466" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_SHDESCRIPTION columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098655132__r2914733cbc6f4d1687d942e56bd8733d"><th align="left" class="cellrowborder" valign="top" width="16.351635163516352%" id="mcps1.3.4.2.5.1.1"><p id="EN-US_TOPIC_0000001098655132__ad66ec38d5ff74dc4a3f2c8ead9f649b6">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.15101510151015%" id="mcps1.3.4.2.5.1.2"><p id="EN-US_TOPIC_0000001098655132__a3f7c038c2c314ab6b593fca02427f89d">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.502650265026507%" id="mcps1.3.4.2.5.1.3"><p id="EN-US_TOPIC_0000001098655132__a609fd7baf96e493f9199a53e4a7c696b">Reference</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="46.994699469946994%" id="mcps1.3.4.2.5.1.4"><p id="EN-US_TOPIC_0000001098655132__a7ed96fd9c0b84844b39d9d0c5bfb244f">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001098655132__r32ef703b05fd4b88abee6dd5e46b3314"><td class="cellrowborder" valign="top" width="16.351635163516352%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001098655132__a2b58340dafb540609563f479d917feb7">objoid</p>
</td>
<td class="cellrowborder" valign="top" width="10.15101510151015%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001098655132__ae911dd7345e84ca981f7bbfaf4b7fffa">oid</p>
</td>
<td class="cellrowborder" valign="top" width="26.502650265026507%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001098655132__ae3a2aa12d66b48738c86d67718118929">Any OID column</p>
</td>
<td class="cellrowborder" valign="top" width="46.994699469946994%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001098655132__a28395d9b2e264ca58e6f9bd30c32375a">OID of the object this description pertains to</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098655132__r10e6068bab7444dbaad70683ac1610a2"><td class="cellrowborder" valign="top" width="16.351635163516352%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001098655132__ac846f6841adc4a48adcddfe01214d219">classoid</p>
</td>
<td class="cellrowborder" valign="top" width="10.15101510151015%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001098655132__a9ecc41a96c7c43dfbfb3b028b805e8bc">oid</p>
</td>
<td class="cellrowborder" valign="top" width="26.502650265026507%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001098655132__a90636c30f3364a2ab1549b2fad793e79"><a href="dws_04_0578.html">PG_CLASS</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="46.994699469946994%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001098655132__ad2453270bb964308848a36b466e85f45">OID of the system catalog where the object resides</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001098655132__ra29f662791e743d58331bae548f81878"><td class="cellrowborder" valign="top" width="16.351635163516352%" headers="mcps1.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0000001098655132__a37f5bea99a4648fb99b19cba9d2b051b">description</p>
</td>
<td class="cellrowborder" valign="top" width="10.15101510151015%" headers="mcps1.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0000001098655132__a9686a5ff638c4a1986357eb12f8a2479">text</p>
</td>
<td class="cellrowborder" valign="top" width="26.502650265026507%" headers="mcps1.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0000001098655132__a431e0e1e312844f38f76bde35780e862">-</p>
</td>
<td class="cellrowborder" valign="top" width="46.994699469946994%" headers="mcps1.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0000001098655132__a8c935fabf2644558b432aa0260c3c6cf">Arbitrary text that serves as the description of this object</p>
</td>
</tr>
</tbody>
</table>
</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>