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

Commit 89f059b

Browse files
committed
Remove redundant memory context switches in BeginCopyFrom().
This is probably a leftover from code refactoring. Japin Li Discussion: https://postgr.es/m/MEYP282MB16693DDABDFEC7949AC31857B6599@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
1 parent c330b75 commit 89f059b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/commands/copyfrom.c

-4
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,6 @@ BeginCopyFrom(ParseState *pstate,
13401340

13411341
cstate->whereClause = whereClause;
13421342

1343-
MemoryContextSwitchTo(oldcontext);
1344-
1345-
oldcontext = MemoryContextSwitchTo(cstate->copycontext);
1346-
13471343
/* Initialize state variables */
13481344
cstate->eol_type = EOL_UNKNOWN;
13491345
cstate->cur_relname = RelationGetRelationName(cstate->rel);

0 commit comments

Comments
 (0)