Fix a few comments that referred to copy.c.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 23 Nov 2020 09:36:13 +0000 (11:36 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 23 Nov 2020 09:36:13 +0000 (11:36 +0200)
Missed these in the previous commit.

src/backend/libpq/pqcomm.c
src/include/commands/trigger.h
src/include/nodes/execnodes.h
src/test/regress/expected/triggers.out
src/test/regress/sql/triggers.sql

index ac986c050568909379fd5bb2b01766b497dbd3d3..d7de962a04ce69a394381cdff03ceb82dec8e262 100644 (file)
@@ -1626,7 +1626,7 @@ socket_endcopyout(bool errorAbort)
        return;
    if (errorAbort)
        pq_putbytes("\n\n\\.\n", 5);
-   /* in non-error case, copy.c will have emitted the terminator line */
+   /* in non-error case, copyto.c will have emitted the terminator line */
    DoingCopyOut = false;
 }
 
index e38d732ed477dd5670598994e74a11674191b66d..244540d90b96a6726db5c75019e99fc54e848c29 100644 (file)
@@ -44,7 +44,7 @@ typedef struct TriggerData
 
 /*
  * The state for capturing old and new tuples into transition tables for a
- * single ModifyTable node (or other operation source, e.g. copy.c).
+ * single ModifyTable node (or other operation source, e.g. copyfrom.c).
  *
  * This is per-caller to avoid conflicts in setting
  * tcs_original_insert_tuple.  Note, however, that the pointed-to
@@ -69,8 +69,8 @@ typedef struct TransitionCaptureState
     * For INSERT and COPY, it would be wasteful to convert tuples from child
     * format to parent format after they have already been converted in the
     * opposite direction during routing.  In that case we bypass conversion
-    * and allow the inserting code (copy.c and nodeModifyTable.c) to provide
-    * a slot containing the original tuple directly.
+    * and allow the inserting code (copyfrom.c and nodeModifyTable.c) to
+    * provide a slot containing the original tuple directly.
     */
    TupleTableSlot *tcs_original_insert_tuple;
 
index 6c0a7d68d61529218190ad918c45161cd221a39f..f6824bf2e1b0dda175d76ee1331e21680a0af15b 100644 (file)
@@ -498,7 +498,7 @@ typedef struct ResultRelInfo
     */
    TupleConversionMap *ri_ChildToRootMap;
 
-   /* for use by copy.c when performing multi-inserts */
+   /* for use by copyfrom.c when performing multi-inserts */
    struct CopyMultiInsertBuffer *ri_CopyMultiInsertBuffer;
 } ResultRelInfo;
 
index 213dff6d9ec3729ac08e5097728595ee2f0e3d2d..1dc525251a9c667d70ee8e17d77bfd1b29087de4 100644 (file)
@@ -2904,7 +2904,7 @@ NOTICE:  trigger = child3_delete_trig, old table = (CCC,42,foo)
 copy parent (a, b) from stdin;
 NOTICE:  trigger = parent_insert_trig, new table = (AAA,42), (BBB,42), (CCC,42)
 -- same behavior for copy if there is an index (interesting because rows are
--- captured by a different code path in copy.c if there are indexes)
+-- captured by a different code path in copyfrom.c if there are indexes)
 create index on parent(b);
 copy parent (a, b) from stdin;
 NOTICE:  trigger = parent_insert_trig, new table = (DDD,42)
index 3f4c2aa877a0c7c2f10bffb8767e884997ec5576..bebe276ef432762ecc95757cde3e4108f2dc24a2 100644 (file)
@@ -2112,7 +2112,7 @@ CCC   42
 \.
 
 -- same behavior for copy if there is an index (interesting because rows are
--- captured by a different code path in copy.c if there are indexes)
+-- captured by a different code path in copyfrom.c if there are indexes)
 create index on parent(b);
 copy parent (a, b) from stdin;
 DDD    42