Re: Reset snapshot export state on the transaction abort

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Reset snapshot export state on the transaction abort
Дата
Msg-id YWfUJYaEuHuWw0mq@paquier.xyz
обсуждение исходный текст
Ответ на Re: Reset snapshot export state on the transaction abort  (Dilip Kumar <dilipbalaut@gmail.com>)
Ответы Re: Reset snapshot export state on the transaction abort  (Dilip Kumar <dilipbalaut@gmail.com>)
Список pgsql-hackers
On Wed, Oct 13, 2021 at 10:53:24AM +0530, Dilip Kumar wrote:
> Actually, it is not required because 1) Snapshot export can not be
> allowed within a transaction block, basically, it starts its own
> transaction block and aborts that while executing any next replication
> command see SnapBuildClearExportedSnapshot().  So our problem is only
> if the transaction block internally started for exporting, gets
> aborted before any next command arrives.  So there is no possibility
> of starting any sub transaction.

Yes, you are right here.  I did not remember the semantics this relies
on.  I have played more with the patch, reviewed the whole, and the
fields you are resetting as part of the snapshot builds seem correct
to me.  So let's fix this.
--
Michael

Вложения

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

Предыдущее
От: "osumi.takamichi@fujitsu.com"
Дата:
Сообщение: RE: Failed transaction statistics to measure the logical replication progress
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Next Steps with Hash Indexes