Re: Deadlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, I am trying to find out what message i should reply if I receive email with deadlock notification.

I understand how deadlock occurs, hot to find them in logs, prevention of deadlock(ex: oqueries in order) etc.

But since the deadlock_timeout is 1s, they don't probably hang around. So post getting an alert, not sure what to respond to them

On Tue, 2 Apr 2024, 22:15 Holger Jakobs, <holger@xxxxxxxxxx> wrote:
Am 02.04.24 um 18:40 schrieb Rajesh Kumar:
Hi

If I receive an alert for deadlock, what should I do? Like what analysis should I do? No way to find a root cause?
Under pg_locks, what I can analyse? 

If you receive an error with a deadlock, the current transaction is dead. You have to decide whether to try again.

Within the error message you find a hint which other (not aborted) transaction was involved in the deadlock. So you have all the information you need to find the culprit.

Regards,

Holger

--

Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012

chat with me on Signal messenger

PNG image

Attachment: TapMuhNyQVuzuVPA.png
Description: PNG image


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux