Files
doc-exports/docs/dws/dev/dws_04_0623.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

132 lines
11 KiB
HTML

<a name="EN-US_TOPIC_0000001764650348"></a><a name="EN-US_TOPIC_0000001764650348"></a>
<h1 class="topictitle1">PG_TRIGGER</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001764650348__p75611343181114"><strong id="EN-US_TOPIC_0000001764650348__b86045011199">PG_TRIGGER</strong> records the trigger information.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764650348__t4e9f1584832c4e3a868266a47213a471" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001764650348__rfa6b53232abc413db220bcad16a80e62"><th align="left" class="cellrowborder" valign="top" width="20.84%" id="mcps1.3.2.1.4.1.1"><p id="EN-US_TOPIC_0000001764650348__ab243032ac4a649a2b3e2ec6a971833f1"><strong id="EN-US_TOPIC_0000001764650348__b155782979543455">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.03%" id="mcps1.3.2.1.4.1.2"><p id="EN-US_TOPIC_0000001764650348__abcbd7f985a8f4213aa26c3df0907960d"><strong id="EN-US_TOPIC_0000001764650348__b129902021163419">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.129999999999995%" id="mcps1.3.2.1.4.1.3"><p id="EN-US_TOPIC_0000001764650348__ae5014673ff4049c9b740e154d256a62d"><strong id="EN-US_TOPIC_0000001764650348__b139632023183417">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001764650348__re97822e00c6742f0a9e67ea0d3977ac4"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__a2b6c5d6cec1a4807b5b00d543191aac4">tgrelid</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__aed1e8a2355864481b37622327cc8ad87">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__a3291f9ec49894a20bf8ad63aa62c222b">OID of the table where the trigger is located.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__r766c3dee756642f6ab8d6df233eb548a"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__abfd06dd0bd2d4dc3b69f750c31829538">tgname</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__a7ee78013f94e4794b958e1767509e81e">Name</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__ade2487900dab42d3b39d3ec1ffdbe0f2">Trigger name.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__r7318e4f8f4d341dbbaa1cab565794e90"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__a7fa59e8ee77a4f59a36b10dafcec6fc0">tgfoid</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p5614159174418">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p298831204318">Trigger OID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__reac525af9d814261b052103cb7f2e56f"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__a0f09cce488c1465ba8103426edc19e54">tgtype</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__aaeacda59bf7f42e59d5f2c313851f0f6">Smallint</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__ac65fc0bb59ab4fa49aa2cb85281b438a">Trigger type.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__r49010e43b8b34ed6849f670f6d3a59b1"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__a3738fd2d3af840ab99617f29dd26a76f">tgenabled</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__ab0b98f7f793f493cb5889508d624a9d0">Char</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p845317486488"><strong id="EN-US_TOPIC_0000001764650348__b19568153163117">O</strong>: The trigger fires in "origin" or "local" mode.</p>
<p id="EN-US_TOPIC_0000001764650348__p1618812516483"><strong id="EN-US_TOPIC_0000001764650348__b1470163563114">D</strong>: The trigger is disabled.</p>
<p id="EN-US_TOPIC_0000001764650348__p0972453194814"><strong id="EN-US_TOPIC_0000001764650348__b12201753183117">R</strong>: The trigger fires in "replica" mode.</p>
<p id="EN-US_TOPIC_0000001764650348__p923894417481"><strong id="EN-US_TOPIC_0000001764650348__b895661217326">A</strong>: The trigger always fires.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row71181822204320"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p111982224316">tgisinternal</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p13120102214432">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p12550723165013">Internal trigger ID. If the value is true, it indicates an internal trigger.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row108975349439"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p20898133412432">tgconstrrelid</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p188986344434">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p138981434164316">Table referenced by the integrity constraint.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row489817346432"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p168981034144320">tgconstrindid</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p1898234194319">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p165262349613">Index of the integrity constraint.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row489853419436"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p789843404315">tgconstraint</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p5898133417435">OID</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p3898143414310">OID of the constraint trigger in <strong id="EN-US_TOPIC_0000001764650348__b13610105514216">pg_constraint</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row20898334144315"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p1689803418436">tgdeferrable</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p1898143484318">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p18983341434">The constraint trigger is of the DEFERRABLE type.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row3898113404314"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p88992343437">tginitdeferred</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p18990344439">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p38993340437">whether the trigger is of the INITIALLY DEFERRED type.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row20899193418435"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p389973412437">tgnargs</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p1899434164319">Smallint</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p3899134114319">Input parameters number of the trigger function.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row1833316445"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p1539315448">tgattr</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p14333184418">int2vector</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p132031114416">Column ID specified by the trigger. If no column is specified, an empty array is used.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row19363194419"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p143131144416">tgargs</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p193163174412">bytea</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p15323114410">Parameter transferred to the trigger.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764650348__row1317317441"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001764650348__p041831154418">tgqual</p>
</td>
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001764650348__p184531154417">pg_node_tree</p>
</td>
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001764650348__p241231154412">Indicates the WHEN condition of the trigger. If the WHEN condition does not exist, the value is null.</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>