From: | Jarosław Jankowski <Jarek(at)prn(dot)pl> |
---|---|
To: | "'pgsql-novice(at)postgresql(dot)org'" <pgsql-novice(at)postgresql(dot)org>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>, "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org> |
Subject: | How can I know that record is locked? |
Date: | 2002-03-18 20:39:30 |
Message-ID: | 01C1CEC5.63F40460.Jarek@prn.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi, I'am polish programmers in PostgreSQL.
My question is: How can I know that record is locked?
I do SELECT .. FOR UPDATE in transaction, and when selected records is
locked by other user, then my select wait for release lock and hold
program. I want select and lock records. If lock is unavaliable, I want get
any error, instead of wait for release lock.
Please help me.
Thanks for answers.
Jaroslaw Jankowski
jarek(at)prn(dot)pl
--------------------------------------
Sorry for my language, but I know only technical english for reading
documentation.
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2002-03-18 20:43:06 | Re: always forced restart after status 139? |
Previous Message | Jason Williams | 2002-03-18 20:00:57 | Re: always forced restart after status 139? |