From 61dc407893600f551dbcbc235d1dccd134f43da0 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 14 Mar 2019 22:44:21 +0100 Subject: [PATCH] Improve code comment --- src/backend/commands/copy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index a0ea4f6c38..218a6e01cb 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -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 -- 2.40.0