aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/libpq/pqcomm.c2
-rw-r--r--src/include/commands/trigger.h6
-rw-r--r--src/include/nodes/execnodes.h2
-rw-r--r--src/test/regress/expected/triggers.out2
-rw-r--r--src/test/regress/sql/triggers.sql2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c
index ac986c05056..d7de962a04c 100644
--- a/src/backend/libpq/pqcomm.c
+++ b/src/backend/libpq/pqcomm.c
@@ -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;
}
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h
index e38d732ed47..244540d90b9 100644
--- a/src/include/commands/trigger.h
+++ b/src/include/commands/trigger.h
@@ -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;
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 6c0a7d68d61..f6824bf2e1b 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -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;
diff --git a/src/test/regress/expected/triggers.out b/src/test/regress/expected/triggers.out
index 213dff6d9ec..1dc525251a9 100644
--- a/src/test/regress/expected/triggers.out
+++ b/src/test/regress/expected/triggers.out
@@ -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)
diff --git a/src/test/regress/sql/triggers.sql b/src/test/regress/sql/triggers.sql
index 3f4c2aa877a..bebe276ef43 100644
--- a/src/test/regress/sql/triggers.sql
+++ b/src/test/regress/sql/triggers.sql
@@ -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