Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68b1a48

Browse files
committed
Fix a few comments that referred to copy.c.
Missed these in the previous commit.
1 parentc532d15 commit68b1a48

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+
*providea 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 bycopy.c when performing multi-inserts */
501+
/* for use bycopyfrom.c when performing multi-inserts */
502502
structCopyMultiInsertBuffer*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 incopy.c if there are indexes)
2907+
-- captured by a different code path incopyfrom.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 @@ CCC42
21122112
\.
21132113

21142114
-- same behavior for copy if there is an index (interesting because rows are
2115-
-- captured by a different code path incopy.c if there are indexes)
2115+
-- captured by a different code path incopyfrom.c if there are indexes)
21162116
createindexon parent(b);
21172117
copy parent (a, b)from stdin;
21182118
DDD42

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp