Re: Lock pileup causes server to stall

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Lock pileup causes server to stall
Дата
Msg-id 20141110214000.GL1791@alvin.alvh.no-ip.org
обсуждение исходный текст
Ответ на Lock pileup causes server to stall  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Lock pileup causes server to stall
Список pgsql-performance
Josh Berkus wrote:
> All,
>
> pg version: 9.3.5
> RHEL 6.5
> 128GB/32 cores
> Configured with shared_buffers=16GB
> Java/Tomcat/JDBC application
>
> Server has an issue that whenever we get lock waits (transaction lock
> waits, usually on an FK dependancy) lasting over a minute or more than
> 10 at once, *all* queries on the server slow to a crawl, taking 100X to
> 400X normal execution times.

Current FK checking makes you wait if the referenced tuple is modified
on any indexed column, not just those that are actually used in
foreign keys.  Maybe this case would be sped up if we optimized that.

> * This applies even to queries which are against other databases, so
> it's not purely a lock blocking issue.

Oh.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Performance bug in prepared statement binding in 9.2?
Следующее
От: Eric Ramirez
Дата:
Сообщение: Re: updating statistics on slow running query