diff options
author | Michael Paquier | 2023-09-09 12:12:41 +0000 |
---|---|---|
committer | Michael Paquier | 2023-09-09 12:12:41 +0000 |
commit | e434e21e114b423e919324ad6ce1f3f079ca2a03 (patch) | |
tree | d990f432808ceee78dc2398477608afd5add25ad | |
parent | 320a27aab6c6797bfb0213b6b7a252da0b33637d (diff) |
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 c532d15dddff1.
Author: Jingtang Zhang
Discussion: https://postgr.es/m/CAPsk3_CrYeXUVHEiaWAYxY9BKiGvGT3AoXo_+Jm0xP_s_VmXCA@mail.gmail.com
-rw-r--r-- | src/backend/commands/copyfrom.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/commands/copyfrom.c b/src/backend/commands/copyfrom.c index b47cb5c66d..70871ed819 100644 --- a/src/backend/commands/copyfrom.c +++ b/src/backend/commands/copyfrom.c @@ -1533,8 +1533,6 @@ BeginCopyFrom(ParseState *pstate, cstate->rteperminfos = pstate->p_rteperminfos; } - tupDesc = RelationGetDescr(cstate->rel); - num_phys_attrs = tupDesc->natts; num_defaults = 0; volatile_defexprs = false; |