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

Appearance settings

Commit e434e21

Browse filesBrowse files
committed
Remove redundant assignments in copyfrom.c
The tuple descriptor and the number of attributes are assigned twice to the same values in BeginCopyFrom(), for what looks like a small thinko coming from the refactoring done in c532d15. Author: Jingtang Zhang Discussion: https://postgr.es/m/CAPsk3_CrYeXUVHEiaWAYxY9BKiGvGT3AoXo_+Jm0xP_s_VmXCA@mail.gmail.com
1 parent 320a27a commit e434e21
Copy full SHA for e434e21

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed

‎src/backend/commands/copyfrom.c

Copy file name to clipboardExpand all lines: src/backend/commands/copyfrom.c
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,8 +1533,6 @@ BeginCopyFrom(ParseState *pstate,
15331533
cstate->rteperminfos = pstate->p_rteperminfos;
15341534
}
15351535

1536-
tupDesc = RelationGetDescr(cstate->rel);
1537-
num_phys_attrs = tupDesc->natts;
15381536
num_defaults = 0;
15391537
volatile_defexprs = false;
15401538

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.