Re: Adding locks statistics
От | Jeff Davis |
---|---|
Тема | Re: Adding locks statistics |
Дата | |
Msg-id | 1a236172c7dda72939e4293657a90536cce7dd16.camel@j-davis.com обсуждение исходный текст |
Ответ на | Re: Adding locks statistics (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>) |
Ответы |
Re: Adding locks statistics
|
Список | pgsql-hackers |
On Tue, 2025-08-12 at 09:37 +0000, Bertrand Drouvot wrote: > It can be used for example for: > > 1. checking if "waits" is close to "requests". Then it means you > usually have to > wait before acquiring the lock, which means you may have a > concurrency issue. > > 2. lock_timeout and deadlock_timeout tuning (lock_timeout is visible > only in the > logs if log_min_error_statement is set appropriately). > > 3. checking the "requests"/"fastpath" ratio to see if > "max_locks_per_transaction" > needs tuning (see c4d5cb71d2). > " > > Do these seem like useful use cases? Those seem plausibly useful, but I don't recall needing that exact information myself, and I wanted to hear more from others. For instance, a view could be helpful to diagnose concurrency issues, but I think that's worth discussing in more detail to see what kinds of issues it can help with and how it complements other approaches. I suspect when we get into the details, different people (or different situations) would want slightly different information out of that view. Regards, Jeff Davis
В списке pgsql-hackers по дате отправления: