RE: Row Level Locking Problem - Mailing list pgsql-hackers

From Juan Carlos Pérez Vázquez
Subject RE: Row Level Locking Problem
Date
Msg-id 000b01c00a88$581fe850$0100a8c0@thematrix2.es
Whole thread Raw
In response to Re: Row Level Locking Problem  (Don Baccus <dhogaza@pacifier.com>)
List pgsql-hackers
> Well, this is how it is supposed to work.  "select for update" only
> works within a transaction and holds the lock until the transaction
> is complete.
>
> What exactly is it that you're trying to do?
       Let us suppose that we have 2 transactions, and attempt to block the
same row in the two transactions. One of them will wait until in the other
it is commited or rollbacked.
   Oracle has "select for update nowait",  it does that instead of waiting
the conclusion of the other  transaction, gives back an error to us saying
that the row already has been blocked.
   I am looking for something similar to this, or in its defect, knowledge
if a row has been blocked, to avoid this waits
   Juan Carlos Perez Vazquez   Cray2@mail.com




pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: How Do You Pronounce "PostgreSQL"?
Next
From: "suchet singh khalsa"
Date:
Subject: postmaster locking issues