Re: user_write_lock_oid questions

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: user_write_lock_oid questions
Date: 2005-12-03 06:03:49
Message-ID: dmrcec$1vm5$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


""Marian Naghen"" <naghen(at)ratb(dot)ro> 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2005-12-03 07:43:38 Re: New.* and old.* as function arguments within rules
Previous Message Matias Silva 2005-12-03 05:02:08 Re: PostgresSQL Halting System Boot