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

211 lines
23 KiB
HTML

<a name="EN-US_TOPIC_0000001145694743"></a><a name="EN-US_TOPIC_0000001145694743"></a>
<h1 class="topictitle1">PG_CONSTRAINT</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001145694743__aa05fdd2e9df84727a08dbc750256cebe"><strong id="EN-US_TOPIC_0000001145694743__b19501136172515">PG_CONSTRAINT</strong> records check, primary key, unique, and foreign key constraints on the tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145694743__t91844888ccf74ee79e60e8df01177fc8" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_CONSTRAINT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145694743__r685693c9763b44daa5b23b7158c8cca8"><th align="left" class="cellrowborder" valign="top" width="25.77%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145694743__a955b8f96e74f4d42b9ab070a27813fb4"><strong id="EN-US_TOPIC_0000001145694743__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.73%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145694743__a6bbcc242196247fcb5fc3b3c10e36324">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.49999999999999%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145694743__a041550a69eab451196efad802fdc0c26">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145694743__r40c606ab179442ef9aff793455a0b827"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a62ed4a3e8f784e6880e0c233cb9f7d95">conname</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__abeee53bc85784e8293074c72b81048d9">name</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a390668d38893477a80f7f0a1eb3b1ef5">Constraint name (not necessarily unique)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r14d218d7fefb482ba7a2dc0ccf8b7662"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__ac862d489374c4d0a8fbbd7e7a7a76f38">connamespace</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a7cb140adfd2e4e07a7dbddcd9fc2d817">oid</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a34141e7ef52f40b0bb11925c7ada4f68">OID of the namespace that contains the constraint</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r37f4eb06dcb24c11bbf3ac7f22888402"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a4b7cd888ae47405db95407c79816ccd0">contype</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a67678ba092fc480cbbbd156c09db2c42">"char"</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001145694743__u81bfa4a0794e408a872ee8e838a84e73"><li id="EN-US_TOPIC_0000001145694743__ld08c6d6551f242deaab9c221ceab7332"><strong>c</strong> indicates check constraints.</li><li id="EN-US_TOPIC_0000001145694743__l0a99f3ba58194d63a3417fb9fdbdddb0"><strong>f</strong> indicates foreign key constraints.</li><li id="EN-US_TOPIC_0000001145694743__l4d054525e2c743d3b3928334705e76a8"><strong>p</strong> indicates primary key constraints.</li><li id="EN-US_TOPIC_0000001145694743__l549c8e99404a4ca4ac6e25223a3c0659"><strong>u</strong> indicates unique constraints.</li><li id="EN-US_TOPIC_0000001145694743__li144817312203"><strong id="EN-US_TOPIC_0000001145694743__b977553305717">t</strong> indicates trigger constraints.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rda00615bf5304bdfb5228bd50fe9f977"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a014719a18fa24e4392446d60b82af963">condeferrable</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a89f89a33d14f46a8ac1aa903a94c8df2"><span id="EN-US_TOPIC_0000001145694743__text1912115813112">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a8943ad6e6cfa4468a1af72972e6bca6f">Whether the constraint can be deferrable</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r853448ec8f6b405c8e797de8d45a9f8c"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a2af05193917d4e11b3aaff8ac5d9a080">condeferred</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a1490f6e1276c4c2ab09688a5f22b26de"><span id="EN-US_TOPIC_0000001145694743__text1779365963117">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a13d88de2889045d0aadffc9354b8965c">Whether the constraint can be deferrable by default</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r4d25712c85be4b2e8b3cbc3f4b3025e9"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a03fcc3c762f14637a2a68f6e08f681a1">convalidated</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a53026db5f5b84441be35b6fcf82df41e"><span id="EN-US_TOPIC_0000001145694743__text15682014320">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a3759d5fe6b1f43a49265a94c8219d0c3">Whether the constraint is valid Currently, only foreign key and check constraints can be set to false.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r3abf234c4f2444fc8b9830c3e07fcae3"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a4bd0ed1d2a164c10b99aafb18bd612b6">conrelid</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__ad1bc55b1b0154f2296637ae15fde1011">oid</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__ac323ed9b14014809bdd9438b2ce1e589">Table containing this constraint. The value is <strong id="EN-US_TOPIC_0000001145694743__b842352706193419">0</strong> if it is not a table constraint.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rcfe1f9812c31475c9ddc2cb5929a3f4c"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__aed3938113bcd4d21ba520e3a60a0ed1d">contypid</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a4e946b7eb5004d62a1b43640d44b3034">oid</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a7849c7353cb5442b8c3e82ba70d01321">Domain containing this constraint. The value is <strong id="EN-US_TOPIC_0000001145694743__b842352706193422">0</strong> if it is not a domain constraint.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r59955245059c426eb3df512b943108b6"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__af41afe74b0074741976d2b45582f869d">conindid</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__ae91666db9ad84c9ca045a566824fa039">oid</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a8583a5cd762740e290c398ba396e2662">ID of the index associated with the constraint</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rc4679d11b4614e6fa71320e0f31caf33"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__ab58a03933b914d0688f09c9938afdc95">confrelid</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__ac760870a5bfe45329a57eca4db2af450">oid</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__aa2fdf253ece640039d9dae7e9e1698de">Referenced table if this constraint is a foreign key; otherwise, the value is <strong id="EN-US_TOPIC_0000001145694743__b842352706193430">0</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rd4287c1f66d24c418eabab26bb465651"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a1e1871e760134801ac791564c5f21059">confupdtype</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a792e195ce0df49f98ff31dd3d82d1478">"char"</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__ae464c48b6b48406a9e732388f9d43d5d">Foreign key update action code</p>
<ul id="EN-US_TOPIC_0000001145694743__uf85d9b91a3ae4bc892e18c2d00cdf23c"><li id="EN-US_TOPIC_0000001145694743__l540d286e73a34a609b5725610c471679"><strong>a</strong> indicates no action.</li><li id="EN-US_TOPIC_0000001145694743__ld41b36ae1e184d39a600dbc434616ef9"><strong>r</strong> indicates restriction.</li><li id="EN-US_TOPIC_0000001145694743__l312b2e2db1ac4e73895c98250049186e"><strong>c</strong> indicates cascading.</li><li id="EN-US_TOPIC_0000001145694743__lbecde32b44394cc084aec63efb7077b6"><strong>n</strong> indicates that the parameter is set to null.</li><li id="EN-US_TOPIC_0000001145694743__l067302b290b14726976bb24f06fce6d0"><strong>d</strong> indicates that the default value is used.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r66b2ab1a92f24b5cb89a4ce361e585cc"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a8e84884f73484d5893c68d741d1bf345">confdeltype</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__ab580b9e8d6d84d4390547ad1a51beaa3">"char"</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a453db295813846bab179cecc4bcb5833">Foreign key deletion action code</p>
<ul id="EN-US_TOPIC_0000001145694743__u1536e5ee327b4c988de67ffc3306978f"><li id="EN-US_TOPIC_0000001145694743__ld9dc13623551474fa9220a2a9949a696"><strong>a</strong> indicates no action.</li><li id="EN-US_TOPIC_0000001145694743__l810361f15bb54edba9c69766ea401e1e"><strong>r</strong> indicates restriction.</li><li id="EN-US_TOPIC_0000001145694743__l829efcd882ab4e2297b6fb47668bf26c"><strong>c</strong> indicates cascading.</li><li id="EN-US_TOPIC_0000001145694743__lfcf810bd1d154db29f5e3c72fde9674e"><strong>n</strong> indicates that the parameter is set to null.</li><li id="EN-US_TOPIC_0000001145694743__l929b0f35cc674d45998c64d4cd7f3d9c"><strong>d</strong> indicates that the default value is used.</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r34cbb7f0542e45c797e2d7b39e73e23f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a3bb2ce28e9ce4ad6b9d3ca4cfd9ddb71">confmatchtype</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a60796a415e244f1a85ae0b8b0c07a5b3">"char"</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__aa64ddfa0b26f4f9baa19980ba8caebe7">Foreign key match type</p>
<ul id="EN-US_TOPIC_0000001145694743__udbbc9aa3a5e54dafb6a22a0d2ea02b36"><li id="EN-US_TOPIC_0000001145694743__l54dc24ef2df449cdb6422e34743336b8"><strong>f</strong> indicates full match.</li><li id="EN-US_TOPIC_0000001145694743__l101d8d63cda14d0a9f10069f94d9b5cf"><strong>p</strong> indicates partial match.</li><li id="EN-US_TOPIC_0000001145694743__l5c5854608c5c43e2807e71d677c4232b"><strong>u</strong> indicates simple match (not specified).</li></ul>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r24aa226172124ea2b0ad3d1a7cb2df19"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a5202a433c9c5447bba1bf5d9a4e04bf6">conislocal</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__abb1e213f44284b98b17fa2a381737001"><span id="EN-US_TOPIC_0000001145694743__text169152110327">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__ad9ace979b0294c7fb14c2bc42ae5a2c9">Whether the local constraint is defined for the relationship</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r1d7dbcf8cb2f418eb03855694d1c6bba"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__af12fb705c7554246b29a5f7f316918e4">coninhcount</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__aa1a0c1ee62f24412b2558f90c09c92d5">integer</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a908b2758051c47a8aeedb0fb5e18adfb">Number of direct inheritance parent tables this constraint has. When the number is not <strong id="EN-US_TOPIC_0000001145694743__b842352706162925">0</strong>, the constraint cannot be deleted or renamed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r0d4a01c64b4c4957872f0276a488eb87"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__ace6c931ef76c4d9484d882d0c8a1e4a9">connoinherit</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a750c36ec905b4ed389d342929a1a2d0d"><span id="EN-US_TOPIC_0000001145694743__text78754212320">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a38eca0f8c0e74d36a2b06cb13a32c4a6">Whether the constraint can be inherited</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r59386945be374c8f880ccbe2a03846cb"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a935ab3b578db4528a5bb0694812302e7">consoft</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__aa622af9a55c64eb68f820e03ffe2ccc9"><span id="EN-US_TOPIC_0000001145694743__text3940153183218">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a673f69bdeeb046428915128d4426585e">Whether the column indicates an informational constraint.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rc36fcc6bec884d0f992157ff81e7e581"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__ab965eaa525c54557acad28adc196d3ae">conopt</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__aee10e36f6544441c8a4a4875ca6aa136"><span id="EN-US_TOPIC_0000001145694743__text57651416329">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a74d768aa2c584584bbb7150cf46c4085">Whether you can use Informational Constraint to optimize the execution plan. </p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r42e9d392119140d0971b59d4b2867210"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a74835b3a2f6d4e3f9287e75638fa047d">conkey</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a20287c7a282f4472b5a9a33fcc60ccd3">smallint[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__ab07fe071cb3147419ea8f60893c8eaef">Column list of the constrained control if this column is a table constraint</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r860c9b5dbab14e2a8a1250adb3c8ea8b"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a789e011e31054cafa182f8deeac5d1ce">confkey</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a0b5ac8050b9449e9baa0f3c7024b077b">smallint[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a187342d332194705818dcf879a084e92">List of referenced columns if this column is a foreign key</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rf243f663d2c049caa5fc68dfc47631e8"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a63bb042dec3746bc91573f01bea2ae1b">conpfeqop</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__aef7225b459064b96b3f543963e94646a">oid[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__aeb465085fd9a4dd994627e61952fbafa">ID list of the equality operators for PK = FK comparisons if this column is a foreign key</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__rf81ef7cb5f3a4550a0a72d0af9c9bcc7"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__af9f95951292a4a489785aae4d8514fd3">conppeqop</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__aa516aeb909224c4c92cc7d00c36f5337">oid[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a03224b693fb14cf28af195a3665a4da2">ID list of the equality operators for PK = PK comparisons if this column is a foreign key</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r3de6df25822d414a8ff853035a2e730b"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__acd1efb3a5b88421cb579ce401804e429">conffeqop</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a42e278ec45d243f48e42cc5754089c6d">oid[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a1bef2798cd9a409b9dbadcccd237b7aa">ID list of the equality operators for FK = FK comparisons if this column is a foreign key</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r93f0312e03964169aafe42e0f6dcfc52"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__ac3f917fba5d34a99b702b2bfd76adae5">conexclop</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__abe4869f6b256400db11a9b2426bd633d">oid[]</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a897f8fc05aa3494a86412f190be5f8a8">ID list of the per-column exclusion operators if this column is an exclusion constraint</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r715e809cbdb54aacb4ad090ff5d60c41"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__af71ecc014986462abc3d980e437df6f1">conbin</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__ac3b9b3bbebf14539800aac7d63f95b30">pg_node_tree</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__af29958f6909b422bb8240f8aa46817b4">Internal representation of the expression if this column is a check constraint</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145694743__r118e4d72c8a24f8792266216b00979b4"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694743__a86a0e581abdb44ebac4a49ce11531977">consrc</p>
</td>
<td class="cellrowborder" valign="top" width="16.73%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694743__a62316ca5c387456ebfdd078ce9f971a2">text</p>
</td>
<td class="cellrowborder" valign="top" width="57.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694743__a25fae0a4e74945f6834e685b12d172c3">Human-readable representation of the expression if this column is a check constraint</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="notice" id="EN-US_TOPIC_0000001145694743__n365e9b19f40744688c34caf17ad22759"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001145694743__u737d7c29196c48e08cb64745cb261316"><li id="EN-US_TOPIC_0000001145694743__lcc3057c54a0140cbadb81b6e7e77d294"><strong id="EN-US_TOPIC_0000001145694743__b1627410401087">consrc</strong> is not updated when referenced objects change; for example, it will not track renaming of columns. Rather than relying on this field, it's best to use <strong id="EN-US_TOPIC_0000001145694743__b41742024181010">pg_get_constraintdef()</strong> to extract the definition of a check constraint.</li><li id="EN-US_TOPIC_0000001145694743__l13e6d89d5146473e961e4597a8d25e8c"><strong id="EN-US_TOPIC_0000001145694743__b2679539151013">pg_class.relchecks</strong> must be consistent with the number of check-constraint entries in this table for each relationship.</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>