doc-exports/docs/dws/dev/dws_04_0603.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

109 lines
10 KiB
HTML

<a name="EN-US_TOPIC_0000001188642094"></a><a name="EN-US_TOPIC_0000001188642094"></a>
<h1 class="topictitle1">PG_OPCLASS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188642094__acd74133bf8e84b6ca4a8f43d0c820aa2"><strong id="EN-US_TOPIC_0000001188642094__b49401333174511">PG_OPCLASS</strong> defines index access method operator classes.</p>
<p id="EN-US_TOPIC_0000001188642094__ab16ef5bef2cc4cdd9bcbe4521dd458d1">Each operator class defines semantics for index columns of a particular data type and a particular index access method. An operator class essentially specifies that a particular operator family is applicable to a particular indexable column data type. The set of operators from the family that are actually usable with the indexed column are whichever ones accept the column's data type as their lefthand input. </p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188642094__t73a6cdcc6f5f407295f7a10661f77795" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_OPCLASS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188642094__ra23f56ada4d84851b753595c22721838"><th align="left" class="cellrowborder" valign="top" width="18.23%" id="mcps1.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001188642094__a6685836e60f04997906362bfd62f3a42">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.65%" id="mcps1.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001188642094__ad16ba1201c9a4d72ade48d71c3788f58">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="28.01%" id="mcps1.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000001188642094__a9c975ac569864d5b80459f4bca046b96">Reference</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="42.11%" id="mcps1.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000001188642094__a08e09097ed544fedbb34f3242c05c354">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188642094__r91b8d572acb64edea74d520b11c61878"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a7b89f3fbb5fb4b2f8903cd479643f43a">oid</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__ae0734c9620564b87b7524ca4323c09c3">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a5f2876def31447268b59a7f270d6e2cc">-</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__ac83e99ea444e4895bb702cf926732e72">Row identifier (hidden attribute; must be explicitly selected)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r27e7e2b516a24187979572cc46a0abfa"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a1c22ee7b14284b63a2661a8ece882d68">opcmethod</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__a3b783ea08458435085e3498675ef38b2">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a65777d1c2d8f422fb95d706afbbc774f"><a href="dws_04_0569.html">PG_AM</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__a43dcf4472e7d4283a3477ee68d0e003f">Index access method the operator class is for</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r8967ebf498a743a7a5366f783afd31e8"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a68fcf5cd58db4b9ba2d9c8c201aedec8">opcname</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__af2c8356988b84dd096fe36475fa4683a">name</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a4dc8f9fb8c6048788c439a59f61feab4">-</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__a640c622c92164dd98aab1e9177187529">Name of the operator class</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__rfc403dd65527452fbcce8f5e27bfceb4"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a76aa1090abdc42668a06290e4dd2c556">opcnamespace</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__a5641245e225b4f41a70cc3466a0e775e">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a0655a5f868124ba68b81fe94883e357f"><a href="dws_04_0600.html">PG_NAMESPACE</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__a3730d83df29a4d4daf0ba3d7006f686a">Namespace to which the operator class belongs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r41c4110e86234278857ff803f93d6d58"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__aa78abd5ef7144114b47db741e6850ced">opcowner</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__a140aea14b8d2440c99d8c40245207fc6">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a563941175c904ffcbcde6ad39e1359e9"><a href="dws_04_0574.html">PG_AUTHID</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__a601f61e630ec4bc6b9ec50ad0df7c052">Owner of the operator class</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r43e04e86d21c41deb32739bfd686c30c"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a8d94e0b90e0b42088352a7aa3322d499">opcfamily</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__aa7474b321e2744f187c3884269b6add0">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a436ae6915e5a498eaa2ee97668905f37"><a href="dws_04_0605.html">PG_OPFAMILY</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__adb0972ae635d4806b1f421cc656ccb7a">Operator family containing the operator class</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r9087e017fb5f4f549a5bd6721d54d1cf"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a1fbe8a2c29ff4a95aff6cf93f4db0894">opcintype</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__ad64d72e7c875467f93773987ba7cba2e">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a27818487d96241b8b49504c72ed6d11a"><a href="dws_04_0629.html">PG_TYPE</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__a8b09ff8f5b3249fab5e869f7c0a1e9cd">Data type that the operator class indexes</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__r56d237a47cc04b7fb49bac8ba2330dde"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__a0d25e7aa50d049e4b9827f516213b719">opcdefault</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__a5d0875cb0f354e54a8a6cf49b0532518"><span id="EN-US_TOPIC_0000001188642094__text20186328123618">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a8f659eac906047a8b17a778cffb81aee">-</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__ae2c58dbfe86542c8b7767d3794e2fb30">Whether the operator class is the default for <strong id="EN-US_TOPIC_0000001188642094__b84235270618719">opcintype</strong>. If it is, its value is <strong id="EN-US_TOPIC_0000001188642094__b1173403357172444">true</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188642094__re27efc42e7de49d18903ffd7832e2e63"><td class="cellrowborder" valign="top" width="18.23%" headers="mcps1.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001188642094__af308b19ff30348fa91cac11f94862671">opckeytype</p>
</td>
<td class="cellrowborder" valign="top" width="11.65%" headers="mcps1.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001188642094__a6bdbcf47701e4d6290c80002ec9d9d6a">oid</p>
</td>
<td class="cellrowborder" valign="top" width="28.01%" headers="mcps1.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001188642094__a51bb0a4abdb84dfeae4eedfe1acd2435"><a href="dws_04_0629.html">PG_TYPE</a>.oid</p>
</td>
<td class="cellrowborder" valign="top" width="42.11%" headers="mcps1.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001188642094__afd83610313a943aaa7395f929583fddd">Type of data stored in index, or zero if same as <strong id="EN-US_TOPIC_0000001188642094__b84235270618737">opcintype</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000001188642094__a2595c44ab61641f4b2dd66240232c125">An operator class's <strong id="EN-US_TOPIC_0000001188642094__b8423527061880">opcmethod</strong> must match the <strong id="EN-US_TOPIC_0000001188642094__b84235270618850">opfmethod</strong> of its containing operator family. Also, there must be no more than one <strong id="EN-US_TOPIC_0000001188642094__b84235270618914">pg_opclass</strong> row having <strong id="EN-US_TOPIC_0000001188642094__b84235270618920">opcdefault</strong> true for any given combination of <strong id="EN-US_TOPIC_0000001188642094__b84235270618926">opcmethod</strong> and <strong id="EN-US_TOPIC_0000001188642094__b84235270618929">opcintype</strong>. </p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
</div>
</div>