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>
132 lines
11 KiB
HTML
132 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001233681727"></a><a name="EN-US_TOPIC_0000001233681727"></a>
|
|
|
|
<h1 class="topictitle1">PG_TRIGGER</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233681727__p75611343181114"><strong id="EN-US_TOPIC_0000001233681727__b86045011199">PG_TRIGGER</strong> records the trigger information.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233681727__td1a7bb14e133489aa968103359a983b2" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001233681727__rd62e7f43baf24b278f5986bd811d3a28"><th align="left" class="cellrowborder" valign="top" width="20.84%" id="mcps1.3.2.1.4.1.1"><p id="EN-US_TOPIC_0000001233681727__aefe1d3b238d546f6bb7fec05b95fbaf4">Name</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_0000001233681727__ac6b2872150c24214b9c947f78d840bd2">Type</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_0000001233681727__afb7559e826694fdbace6f77c15f8e534">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233681727__rd744b44c288f4693930c134b51bfe7b9"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__ab54d405f4f634460ad634ce353005702">tgrelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001233681727__a69595eb55ca749c9904d90e9a095b87a">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001233681727__aefe226970ac0431f90b4cc34afd7415f">OID of the table where the trigger is located.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__r28255eddbd85440c81779f2256680c12"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__a2d68b768c8fe44e8bb2980860966a050">tgname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001233681727__a7a85c01eb1bd45bea76fe293c7951c30">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001233681727__a0674fbf7ca5849a69c2100b2b42ea1a5">Trigger name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__re286f3930e2c418ba0acbf8df5ba8371"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__aac4a252942f340f684c2231b38495d75">tgfoid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__p298831204318">Trigger OID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__r693ede469de14c1d88e28e1e626b9d74"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__ac381db1597d644a0adec331649f362d7">tgtype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001233681727__a2c3881b0e7134c938f3ea37a7ff75463">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001233681727__a03245d7c272946068b81d792bca3136b">Trigger type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__rd23dfe7f86a64e049b4379b9cd53c667"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__a13d367c706b34571ac0cf08da4e624d6">tgenabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.03%" headers="mcps1.3.2.1.4.1.2 "><p id="EN-US_TOPIC_0000001233681727__a7e597fd6b3974a50a3390140d6419725">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.129999999999995%" headers="mcps1.3.2.1.4.1.3 "><p id="EN-US_TOPIC_0000001233681727__p845317486488"><strong id="EN-US_TOPIC_0000001233681727__b19568153163117">O</strong>: The trigger fires in "origin" or "local" mode.</p>
|
|
<p id="EN-US_TOPIC_0000001233681727__p1618812516483"><strong id="EN-US_TOPIC_0000001233681727__b1470163563114">D</strong>: The trigger is disabled.</p>
|
|
<p id="EN-US_TOPIC_0000001233681727__p0972453194814"><strong id="EN-US_TOPIC_0000001233681727__b12201753183117">R</strong>: The trigger fires in "replica" mode.</p>
|
|
<p id="EN-US_TOPIC_0000001233681727__p923894417481"><strong id="EN-US_TOPIC_0000001233681727__b895661217326">A</strong>: The trigger always fires.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row71181822204320"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p12550723165013">Internal trigger ID. If the value is true, it indicates an internal trigger.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row108975349439"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p138981434164316">The table referenced by the integrity constraint</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row489817346432"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p165262349613">Index of the integrity constraint</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row489853419436"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p3898143414310">OID of the constraint trigger in the <strong id="EN-US_TOPIC_0000001233681727__b13610105514216">pg_constraint</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row20898334144315"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p18983341434">The constraint trigger is of the DEFERRABLE type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row3898113404314"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p38993340437">whether the trigger is of the INITIALLY DEFERRED type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row20899193418435"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p3899134114319">Input parameters number of the trigger function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row1833316445"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__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_0000001233681727__row19363194419"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__p15323114410">Parameter transferred to the trigger</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681727__row1317317441"><td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.1.4.1.1 "><p id="EN-US_TOPIC_0000001233681727__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_0000001233681727__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_0000001233681727__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>
|
|
|