8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bee367 commit 61dc407Copy full SHA for 61dc407
src/backend/commands/copy.c
@@ -2911,9 +2911,13 @@ CopyFrom(CopyState cstate)
2911
2912
if (!skip_tuple)
2913
{
2914
+ /*
2915
+ * If there is an INSTEAD OF INSERT ROW trigger, let it handle the
2916
+ * tuple. Otherwise, proceed with inserting the tuple into the
2917
+ * table or foreign table.
2918
+ */
2919
if (has_instead_insert_row_trig)
2920
- /* Pass the data to the INSTEAD ROW INSERT trigger */
2921
ExecIRInsertTriggers(estate, resultRelInfo, slot);
2922
}
2923
else
0 commit comments