Improve code comment
authorPeter Eisentraut <[email protected]>
Thu, 14 Mar 2019 21:44:21 +0000 (22:44 +0100)
committerPeter Eisentraut <[email protected]>
Thu, 14 Mar 2019 21:44:21 +0000 (22:44 +0100)
src/backend/commands/copy.c

index a0ea4f6c3837b46745aa2128d887d73e2e238f51..218a6e01cbb1559602cc66221acf0be4f9d4f148 100644 (file)
@@ -2911,9 +2911,13 @@ CopyFrom(CopyState cstate)
 
        if (!skip_tuple)
        {
+           /*
+            * If there is an INSTEAD OF INSERT ROW trigger, let it handle the
+            * tuple.  Otherwise, proceed with inserting the tuple into the
+            * table or foreign table.
+            */
            if (has_instead_insert_row_trig)
            {
-               /* Pass the data to the INSTEAD ROW INSERT trigger */
                ExecIRInsertTriggers(estate, resultRelInfo, slot);
            }
            else