Re: Locking rows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
Cc: Doug McNaught <doug(at)mcnaught(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Locking rows
Date: 2003-02-28 20:10:10
Message-ID: 5979.1046463010@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp> writes:
> True but what I am worried about is the data changing while I am in a
> transaction.

Start a serializable-mode transaction, and the data will not change ---
not from your perspective, anyway. Trying to lock it down to not change
from other people's perspectives seems pointless.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kris 2003-02-28 20:10:46 postgresql caching
Previous Message Tom Lane 2003-02-28 20:08:26 Re: Recreating a primary key