Re: existing row not found by SELECT ... WHERE CTID = ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: existing row not found by SELECT ... WHERE CTID = ?
Дата
Msg-id 1652228.1653408709@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: existing row not found by SELECT ... WHERE CTID = ?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: existing row not found by SELECT ... WHERE CTID = ?  (Matthias Apitz <guru@unixarea.de>)
Список 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 по дате отправления:

Предыдущее
От: 徐志宇徐
Дата:
Сообщение: About psql \dt unable display same name table which have different schema
Следующее
От: Tom Lane
Дата:
Сообщение: Re: About psql \dt unable display same name table which have different schema