Re: Locking rows

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
Cc: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: Locking rows
Date: 2003-02-28 15:48:09
Message-ID: m3n0kgs8xy.fsf@varsoon.wireboard.com
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:

> I have written an application that prints out data from a
> database. One problem I am encountering is in the time it takes to
> generate the print file the data may have changed.

If you use a single query to generate the rows, this will not be a
problem.

If you use multiple queries, execute them all inside a transaction and
you will get a consistent view of the database.

No locking needed.

-Doug

In response to

  • Locking rows at 2003-02-28 10:26:55 from Jean-Christian Imbeault

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Berend Tober 2003-02-28 16:03:00 Some useful plpgsl
Previous Message Richard Huxton 2003-02-28 15:27:40 Re: Locking rows