Skip to content

Commit 68b1a48

Browse files
committed
Fix a few comments that referred to copy.c.
Missed these in the previous commit.
1 parent c532d15 commit 68b1a48

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ socket_endcopyout(bool errorAbort)
16261626
return;
16271627
if (errorAbort)
16281628
pq_putbytes("\n\n\\.\n", 5);
1629-
/* in non-error case, copy.c will have emitted the terminator line */
1629+
/* in non-error case, copyto.c will have emitted the terminator line */
16301630
DoingCopyOut = false;
16311631
}
16321632

src/include/commands/trigger.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct TriggerData
4444

4545
/*
4646
* The state for capturing old and new tuples into transition tables for a
47-
* single ModifyTable node (or other operation source, e.g. copy.c).
47+
* single ModifyTable node (or other operation source, e.g. copyfrom.c).
4848
*
4949
* This is per-caller to avoid conflicts in setting
5050
* tcs_original_insert_tuple. Note, however, that the pointed-to
@@ -69,8 +69,8 @@ typedef struct TransitionCaptureState
6969
* For INSERT and COPY, it would be wasteful to convert tuples from child
7070
* format to parent format after they have already been converted in the
7171
* opposite direction during routing. In that case we bypass conversion
72-
* and allow the inserting code (copy.c and nodeModifyTable.c) to provide
73-
* a slot containing the original tuple directly.
72+
* and allow the inserting code (copyfrom.c and nodeModifyTable.c) to
73+
* provide a slot containing the original tuple directly.
7474
*/
7575
TupleTableSlot *tcs_original_insert_tuple;
7676

src/include/nodes/execnodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ typedef struct ResultRelInfo
498498
*/
499499
TupleConversionMap *ri_ChildToRootMap;
500500

501-
/* for use by copy.c when performing multi-inserts */
501+
/* for use by copyfrom.c when performing multi-inserts */
502502
struct CopyMultiInsertBuffer *ri_CopyMultiInsertBuffer;
503503
} ResultRelInfo;
504504

src/test/regress/expected/triggers.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2904,7 +2904,7 @@ NOTICE: trigger = child3_delete_trig, old table = (CCC,42,foo)
29042904
copy parent (a, b) from stdin;
29052905
NOTICE: trigger = parent_insert_trig, new table = (AAA,42), (BBB,42), (CCC,42)
29062906
-- same behavior for copy if there is an index (interesting because rows are
2907-
-- captured by a different code path in copy.c if there are indexes)
2907+
-- captured by a different code path in copyfrom.c if there are indexes)
29082908
create index on parent(b);
29092909
copy parent (a, b) from stdin;
29102910
NOTICE: trigger = parent_insert_trig, new table = (DDD,42)

src/test/regress/sql/triggers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2112,7 +2112,7 @@ CCC 42
21122112
\.
21132113

21142114
-- same behavior for copy if there is an index (interesting because rows are
2115-
-- captured by a different code path in copy.c if there are indexes)
2115+
-- captured by a different code path in copyfrom.c if there are indexes)
21162116
create index on parent(b);
21172117
copy parent (a, b) from stdin;
21182118
DDD 42

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy