Re: Transaction timeout

Поиск
Список
Период
Сортировка
От Andrey M. Borodin
Тема Re: Transaction timeout
Дата
Msg-id D9412036-76BA-4B31-8DB7-F7BE37CA0437@yandex-team.ru
обсуждение исходный текст
Ответ на Re: Transaction timeout  (Junwang Zhao <zhjwpku@gmail.com>)
Ответы Re: Transaction timeout
Список pgsql-hackers

> On 29 Dec 2023, at 16:00, Junwang Zhao <zhjwpku@gmail.com> wrote:
>
> After exploring the code, I found scheduling the timeout in
> `StartTransaction` might be a reasonable idea, all the chain
> commands will call this function.
>
> What concerns me is that it is also called by StartParallelWorkerTransaction,
> I'm not sure if we should enable this timeout for parallel execution.

I think for parallel workers we should mimic statement_timeout. Because these workers have per-statemenent lifetime.


Best regards, Andrey Borodin.


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

Предыдущее
От: Junwang Zhao
Дата:
Сообщение: Re: Transaction timeout
Следующее
От: Jelte Fennema-Nio
Дата:
Сообщение: Re: Add PQsendSyncMessage() to libpq