Re: Cursor not getting all rows

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cursor not getting all rows
Date: 2005-05-17 18:02:57
Message-ID: 1116352977.22291.133.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-05-17 at 12:49, Joseph Shraibman wrote:
> Scott Marlowe wrote:
>
> > Only if you set transaction isolation to serializable.
>
> So am I getting data that was updated up until the time of the FETCH or
> the DECLARE CURSOR?

The data shouldn't change between the declare and the fetch, it's
between the count(*) and the declare that it can change.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Parker 2005-05-17 18:48:25 explicit cursor vs. for loop in pl/pgsql
Previous Message Tom Lane 2005-05-17 17:56:26 Re: Cursor not getting all rows