Re: Remove redundant MemoryContextSwith in BeginCopyFrom - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove redundant MemoryContextSwith in BeginCopyFrom
Date
Msg-id 783920.1642639831@sss.pgh.pa.us
Whole thread Raw
In response to Re: Remove redundant MemoryContextSwith in BeginCopyFrom  (Japin Li <japinli@hotmail.com>)
Responses Re: Remove redundant MemoryContextSwith in BeginCopyFrom
List pgsql-hackers
Japin Li <japinli@hotmail.com> writes:
> I see you have already push this patch on master (89f059bdf52), why not
> remove MemoryContextSwitchTo in the middle of BeginCopyTo in this commit?

That was a different suggestion from a different person, so I didn't
want to muddle the credit.  Also, it requires a bit of testing,
while 89f059bdf52 was visibly perfectly safe.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: Remove redundant MemoryContextSwith in BeginCopyFrom
Next
From: "David G. Johnston"
Date:
Subject: Re: Document atthasmissing default optimization avoids verification table scan