Commit 68b1a487 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix a few comments that referred to copy.c.

Missed these in the previous commit.
parent c532d15d
...@@ -1626,7 +1626,7 @@ socket_endcopyout(bool errorAbort) ...@@ -1626,7 +1626,7 @@ socket_endcopyout(bool errorAbort)
return; return;
if (errorAbort) if (errorAbort)
pq_putbytes("\n\n\\.\n", 5); 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; DoingCopyOut = false;
} }
......
...@@ -44,7 +44,7 @@ typedef struct TriggerData ...@@ -44,7 +44,7 @@ typedef struct TriggerData
/* /*
* The state for capturing old and new tuples into transition tables for a * 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 * This is per-caller to avoid conflicts in setting
* tcs_original_insert_tuple. Note, however, that the pointed-to * tcs_original_insert_tuple. Note, however, that the pointed-to
...@@ -69,8 +69,8 @@ typedef struct TransitionCaptureState ...@@ -69,8 +69,8 @@ typedef struct TransitionCaptureState
* For INSERT and COPY, it would be wasteful to convert tuples from child * 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 * format to parent format after they have already been converted in the
* opposite direction during routing. In that case we bypass conversion * opposite direction during routing. In that case we bypass conversion
* and allow the inserting code (copy.c and nodeModifyTable.c) to provide * and allow the inserting code (copyfrom.c and nodeModifyTable.c) to
* a slot containing the original tuple directly. * provide a slot containing the original tuple directly.
*/ */
TupleTableSlot *tcs_original_insert_tuple; TupleTableSlot *tcs_original_insert_tuple;
......
...@@ -498,7 +498,7 @@ typedef struct ResultRelInfo ...@@ -498,7 +498,7 @@ typedef struct ResultRelInfo
*/ */
TupleConversionMap *ri_ChildToRootMap; 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; struct CopyMultiInsertBuffer *ri_CopyMultiInsertBuffer;
} ResultRelInfo; } ResultRelInfo;
......
...@@ -2904,7 +2904,7 @@ NOTICE: trigger = child3_delete_trig, old table = (CCC,42,foo) ...@@ -2904,7 +2904,7 @@ NOTICE: trigger = child3_delete_trig, old table = (CCC,42,foo)
copy parent (a, b) from stdin; copy parent (a, b) from stdin;
NOTICE: trigger = parent_insert_trig, new table = (AAA,42), (BBB,42), (CCC,42) 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 -- 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); create index on parent(b);
copy parent (a, b) from stdin; copy parent (a, b) from stdin;
NOTICE: trigger = parent_insert_trig, new table = (DDD,42) NOTICE: trigger = parent_insert_trig, new table = (DDD,42)
......
...@@ -2112,7 +2112,7 @@ CCC 42 ...@@ -2112,7 +2112,7 @@ CCC 42
\. \.
-- same behavior for copy if there is an index (interesting because rows are -- 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); create index on parent(b);
copy parent (a, b) from stdin; copy parent (a, b) from stdin;
DDD 42 DDD 42
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment