Fix a few comments that referred to copy.c.

Missed these in the previous commit.
This commit is contained in:
Heikki Linnakangas 2020-11-23 11:36:13 +02:00
parent c532d15ddd
commit 68b1a4877e
5 changed files with 7 additions and 7 deletions

View 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;
}

View 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;

View 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;

View 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)

View 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