diff options
author | Tom Lane | 2022-01-19 17:31:15 +0000 |
---|---|---|
committer | Tom Lane | 2022-01-19 17:31:15 +0000 |
commit | 89f059bdf52cc9a86b890d42ceed92237123479e (patch) | |
tree | dccf7dbc24774841286cab37c6fc5b87dba5d458 | |
parent | c330b75d9ccecd7ae3cc9716629a48b22235c509 (diff) |
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
-rw-r--r-- | src/backend/commands/copyfrom.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/commands/copyfrom.c b/src/backend/commands/copyfrom.c index 0d6b34206a..7b3f5a84b8 100644 --- a/src/backend/commands/copyfrom.c +++ b/src/backend/commands/copyfrom.c @@ -1340,10 +1340,6 @@ BeginCopyFrom(ParseState *pstate, cstate->whereClause = whereClause; - MemoryContextSwitchTo(oldcontext); - - oldcontext = MemoryContextSwitchTo(cstate->copycontext); - /* Initialize state variables */ cstate->eol_type = EOL_UNKNOWN; cstate->cur_relname = RelationGetRelationName(cstate->rel); |