Search Postgresql Archives

Re: Lock timeout in commit

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

 



On Fri, 11 Jul 2025 at 01:28, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:

I think all you could do is monitor the pg_locks view and hope to
catch the process in "waiting" state before it fails.

It occurs to me to wonder though if we couldn't provide more
context in the error about what lock is being waited for.

Thanks Tom !!

The application is an API server so we intentionally set the lock timeout to a very short interval (5 ms). Having locking context would be great.

Other than deferred FK constraints, what other locking actions are deferred to commit time?

Cheers,

Steve

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux