Re: Standalone synchronous master

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Standalone synchronous master
Дата
Msg-id 20140111175328.GD13568@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Standalone synchronous master  (Florian Pflug <fgp@phlo.org>)
Ответы Re: Standalone synchronous master  (Florian Pflug <fgp@phlo.org>)
Список pgsql-hackers
On 2014-01-11 18:28:31 +0100, Florian Pflug wrote:
> Hm, I was about to suggest that you can set statement_timeout before
> doing COMMIT to limit the amount of time you want to wait for the
> standby to respond. Interestingly, however, that doesn't seem to work,
> which is weird, since AFAICS statement_timeout simply generates a
> query cancel requester after the timeout has elapsed, and cancelling
> the COMMIT with Ctrl-C in psql *does* work.

I think that'd be a pretty bad API since you won't know whether the
commit failed or succeeded but replication timed out. There very well
might have been longrunning constraint triggers or such taking a long
time.
So it really would need a separate GUC.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Standalone synchronous master
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Compiling extensions on Windows