Re: replication_timeout does not seem to be working

Поиск
Список
Период
Сортировка
От A J
Тема Re: replication_timeout does not seem to be working
Дата
Msg-id 1311351085.55818.YahooMailNeo@web120018.mail.ne1.yahoo.com
обсуждение исходный текст
Ответ на Re: replication_timeout does not seem to be working  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: replication_timeout does not seem to be working
Re: replication_timeout does not seem to be working
Список pgsql-admin
I am still not clear. Can you explain what replication_timeout parameter accomplishes and when ?

Basically I wish my synchronous write transaction to not wait indefinitely when the synchronous standby servers are not available. But rather a response returned back to client that write could not be successful, after trying for 'n' seconds. How can that be accomplished ?

Thanks.




From: Fujii Masao <masao.fujii@gmail.com>
To: A J <s5aly@yahoo.com>
Cc: PG Admin <pgsql-admin@postgresql.org>
Sent: Friday, July 22, 2011 9:19 AM
Subject: Re: [ADMIN] replication_timeout does not seem to be working

On Fri, Jul 22, 2011 at 5:14 AM, A J <s5aly@yahoo.com> wrote:
> On 9.1, Beta3 I set the following on master
> replication_timeout = 10s       # in milliseconds; 0 disables
> With no slaves running, I expect a failure in about 10s. But any Insert just
> hangs. Any idea ?

If you set up synchronous replication but there is no standby server,
all the write transactions are blocked infinitely whether replication_timeout
is enabled or not. If you want to cause those transactions to end, you need
to disable synchronous replication by, for example, emptying
synchronous_standby_names or need to set up new standby.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


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

Предыдущее
От: Cédric Villemain
Дата:
Сообщение: Re: Followup on 'Standby promotion does not work'
Следующее
От: "Juan Cuervo (Quality Telecom)"
Дата:
Сообщение: Re: revoked permissions on table still allows users to see table's structure