Re: BeginCopyTo - remove switching to old memory context in between COPY TO command processing

Поиск
Список
Период
Сортировка
От Japin Li
Тема Re: BeginCopyTo - remove switching to old memory context in between COPY TO command processing
Дата
Msg-id MEYP282MB1669EBD009620F937DB183D2B6229@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на BeginCopyTo - remove switching to old memory context in between COPY TO command processing  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Fri, 28 Jan 2022 at 18:11, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote:
> Hi,
>
> While reviewing patch at [1], it has been found that the memory
> context switch to oldcontext from cstate->copycontext in between
> BeginCopyTo is not correct because the intention of the copycontext is
> to use it through the copy command processing. It looks like a thinko
> from the commit c532d1 [2]. Attaching a small patch to remove this.
>
> Thoughts?
>

Thanks for the patch!  Tested and passed regression tests.  LGTM.

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dagfinn Ilmari Mannsåker
Дата:
Сообщение: Server-side base backup: why superuser, not pg_write_server_files?
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BeginCopyTo - remove switching to old memory context in between COPY TO command processing