Search Postgresql Archives

Re: SELECT .. FOR UPDATE: find out who locked a row

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

 



On Thu, Mar 15, 2018 at 1:30 PM, Enrico Thierbach <eno@xxxxxxxxxxxx> wrote:

Now I wonder if it is possible, given the id of one of the locked rows in the queue table, to find out which connection/which transaction owns the lock

​I'd start here:​

https://www.postgresql.org/docs/10/static/view-pg-locks.html
​​

and the pg_stat_activity view:


The system doesn't really understand your model ID/PK field - the system views and catalogs using system identifiers.

David J.


[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 Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux