Re: existing row not found by SELECT ... WHERE CTID = ? - Mailing list pgsql-general

From Tom Lane
Subject Re: existing row not found by SELECT ... WHERE CTID = ?
Date
Msg-id 1652228.1653408709@sss.pgh.pa.us
Whole thread Raw
In response to Re: existing row not found by SELECT ... WHERE CTID = ?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: existing row not found by SELECT ... WHERE CTID = ?
List pgsql-general
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> It may well be that somebody deleted or updated a few rows between the time
> the cursor was materialized and the time the 50000th row was fetched.

Even without HOLD, a cursor will return a view of the data as it stood
when the cursor was opened, just as a plain SELECT does.  There is
*plenty* of time for another session to get in there if you've been
groveling through 50K records one at a time.

            regards, tom lane



pgsql-general by date:

Previous
From: 徐志宇徐
Date:
Subject: About psql \dt unable display same name table which have different schema
Next
From: Tom Lane
Date:
Subject: Re: About psql \dt unable display same name table which have different schema