Re: Row-Level Locking? - Mailing list pgsql-general

From Tom Lane
Subject Re: Row-Level Locking?
Date
Msg-id 16539.990645828@sss.pgh.pa.us
Whole thread Raw
In response to Row-Level Locking?  (gzoller@hotmail.com (Greg Zoller))
List pgsql-general
gzoller@hotmail.com (Greg Zoller) writes:
> My problem is this: what happens if half-way through this set of
> operations someone else (perhaps in another thread) attempts to execute
> the same operation?

See
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/mvcc.html
SELECT FOR UPDATE and/or the implicit row lock done by UPDATE should
solve your problem.

            regards, tom lane

pgsql-general by date:

Previous
From: "Thalis A. Kalfigopoulos"
Date:
Subject: DB2 enhancements?
Next
From: Tom Lane
Date:
Subject: Re: $PGSQL/include/postgres.h