Re: Logging queries cancelled due to replication timeouts

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: Logging queries cancelled due to replication timeouts
Дата
Msg-id
201110111852.p9BIqTr05196@momjian.us
Ответ на
Список
Дерево обсуждения
Logging queries cancelled due to replication timeouts Christophe Pettus <xof@thebuild.com>
Re: Logging queries cancelled due to replication timeouts Bruce Momjian <bruce@momjian.us>
Christophe Pettus wrote:
> Greetings,
> 
> Is there a combination of options that will cause a hot standby replica to log queries that are cancelled due to a replication timeout (max_standby_streaming_delay)?

Sure, how about the system view pg_stat_database_conflicts in PG 9.1?

Our docs say:

	Add the pg_stat_database_conflicts</>
	system view to show queries that have been canceled and the
	reason (Magnus Hagander) 

       
	Cancellations can occur because of dropped tablespaces, lock
	timeouts, old snapshots, pinned buffers, and deadlocks.

I assume replication cancellations are also in there, no?

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: salah jubeh
Дата:
Сообщение: libpq 8.3 and 8.4 interfaces
FAQ