Search Postgresql Archives

Re: user_write_lock_oid questions

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

 



""Marian Naghen"" <naghen@xxxxxxx> wrote

> 1. if a user set a write lock and then, for some reason (bad
> connections, app chashes, etc), disconect from server without releasing,
> what happened with the lock ? It will be still holding ?

When the connection is lost, server will release all its resources, 
including locks.

> 2. there is a way to set/obtain informations about the user who sets a
> lock ?

Check out pg_stat_get_backend_userid(integer backendid) function.

Regards,
Qingqing 




[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