Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e434e21

Browse 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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/backend/commands/copyfrom.c

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