]> granicus.if.org Git - postgresql/commitdiff
Document trigger-firing behavior for inheritance/partitioning.
authorRobert Haas <rhaas@postgresql.org>
Wed, 10 May 2017 03:49:20 +0000 (23:49 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 10 May 2017 03:49:20 +0000 (23:49 -0400)
Amit Langote, reviewed Thomas Munro and by me.

Discussion: http://postgr.es/m/CA+Tgmoadpcs3=mMgdyqVX7L7L_PwO_Dn5j-98a6Tj7ByBuimUQ@mail.gmail.com

doc/src/sgml/trigger.sgml

index 6f8416dda7e8b880812f21ca1f5b8c74c3c58151..ce76a1f0420571adf0d84b085ec637e7069296c1 100644 (file)
     identified as needing to be operated on.
    </para>
 
+   <para>
+    A statement that targets a parent table in a inheritance or partitioning
+    hierarchy does not cause the statement-level triggers of affected child
+    tables to be fired; only the parent table's statement-level triggers are
+    fired.  However, row-level triggers of any affected child tables will be
+    fired.
+   </para>
+
    <para>
     If an <command>INSERT</command> contains an <literal>ON CONFLICT
     DO UPDATE</> clause, it is possible that the effects of all