statement_timeout has no effect if sync standby is unavailable

Поиск
Список
Период
Сортировка
От Nikhil Shetty
Тема statement_timeout has no effect if sync standby is unavailable
Дата
Msg-id CAFpL5VwpZ3Ey3SL=rtXDSVo-PfYT1x6z+9z69Ssu72mCmW9_yA@mail.gmail.com
обсуждение исходный текст
Ответы Re: statement_timeout has no effect if sync standby is unavailable  (Nikhil Shetty <nikhil.dba04@gmail.com>)
Список pgsql-admin
Hi Team,

I am writing a monitoring tool to find if the database is hung.

One of the scenarios is to stop the standby but keep 'synchronous_standby_names=standby1' and 'synchronous_commit=remote_apply' unchanged on primary.

This way the DML queries on primary will be hung. I tried to use 'statement_timeout=5s' to timeout the query but it does not work.

Is there another way to timeout query and report an error ? and why is statement_timeout not working?

Thanks,
Nikhil

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

Предыдущее
От: B Liu
Дата:
Сообщение: pgagent for windows download link missing
Следующее
От: SOzcn
Дата:
Сообщение: On Replica - History issue