=?iso-8859-2?Q?Daniel_Micha=B3?= <[EMAIL PROTECTED]> writes:
> I have to lock one row in table1 for user1. In the same time other users sh=
> ould be able to read this record but when other user for example user2 want=
> to edit this record user2 should get information "The row you try to edit=
> is currently edit" - or sometihing similar.
> Of course I can lock record with syntax "Begin; select * from table1 where =
> ID=3D12 for update; update table1 set field1=3D"New value" where ID=3D12; c=
> ommit;"
> but I can not to inform other user that the record is edited?
Try using the contrib/userlock/ functions.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html