| От | MichaelDBA |
|---|---|
| Тема | Re: Lock contention high |
| Дата | |
| Msg-id | 0b264a08-b723-eec2-c667-49f17b0a487c@sqlexec.com обсуждение |
| Ответ на | Re: Lock contention high (Justin Pryzby <pryzby@telsasoft.com>) |
| Список | pgsql-performance |
1.Is there a way to tune the lock contention ? 2.Is any recommendations to tune/reduce the lock contention via postgres.conf
I think you'd want to find *which* LW locks are being waited on, to see if it's something that can be easily tuned. You can check pg_stat_activity, or maybe create a cronjob to record its content for later analysis. Hello,Also turn on log_lock_waits so you can evaluate the actual SQL causing the problems in the PG log files. Thinking ahead, you may want to consider if using advisory locks from the application side of things might be helpful to manage locks in a more pessimistic way. Also, join with pg_locks table to find out the specific resources that are in contention.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера