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

From Japin Li
Subject Re: Remove redundant MemoryContextSwith in BeginCopyFrom
Date
Msg-id MEYP282MB1669DCEFFEAA75298D86A025B65A9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Whole thread Raw
In response to Re: Remove redundant MemoryContextSwith in BeginCopyFrom  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, 20 Jan 2022 at 08:50, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.
>

Thanks for your explanation!

-- 
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.



pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Document atthasmissing default optimization avoids verification table scan
Next
From: "houzj.fnst@fujitsu.com"
Date:
Subject: RE: row filtering for logical replication