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

Commitdcdc302

Browse files
michaelpqpull[bot]
authored andcommitted
Remove redundant assignments in copyfrom.c
The tuple descriptor and the number of attributes are assigned twice tothe same values in BeginCopyFrom(), for what looks like a small thinkocoming from the refactoring done inc532d15.Author: Jingtang ZhangDiscussion:https://postgr.es/m/CAPsk3_CrYeXUVHEiaWAYxY9BKiGvGT3AoXo_+Jm0xP_s_VmXCA@mail.gmail.com
1 parentb7193d1 commitdcdc302

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)

[8]ページ先頭

©2009-2025 Movatter.jp