pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Christian Imbeault <jc@mega-bucks.co.jp>
Cc: Doug McNaught <doug@mcnaught.org>
Cc: pgsql-general@postgresql.org
Subject: Re: Locking rows
Date: Fri, 28 Feb 2003 15:10:10 -0500
Message-ID: <5979.1046463010@sss.pgh.pa.us> (raw)
In-Reply-To: <3E5F931D.6090509@mega-bucks.co.jp>
References: <3E5F396F.4090507@mega-bucks.co.jp>
	<m3n0kgs8xy.fsf@varsoon.wireboard.com>
	<3E5F931D.6090509@mega-bucks.co.jp>

Jean-Christian Imbeault <jc@mega-bucks.co.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



view thread (19+ messages)  latest in thread

Message-ID: <5979.1046463010@sss.pgh.pa.us>
Permalink:  ../5979.1046463010@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5979.1046463010@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jc@mega-bucks.co.jp, doug@mcnaught.org
  Subject: Re: Locking rows
  In-Reply-To: <5979.1046463010@sss.pgh.pa.us>
  References: <3E5F396F.4090507@mega-bucks.co.jp> <m3n0kgs8xy.fsf@varsoon.wireboard.com> <3E5F931D.6090509@mega-bucks.co.jp> <5979.1046463010@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox