Dear Jeff!
So. I start this question from more far.
I need to protect some resources.
All modifications started with StartTransaction.
Then I try to lock the articles by ids (to prevents other client's modifications).
After that I insert / modify needed data.
Then I commit or rollback.
The locks will vanish on the end of the transaction, so resources accessable again for different session.
If A session locks 1. articles, B session waits for the end of the transaction of A.
From the help I didn't know that these row locks are created by one by one - so it could cause deadlock on unended waiting.
In this flame they talk about statement_timeout:
And you deadlock_timeout... :-) :-) :-)
Thanks
dd