| От | Tom Lane |
|---|---|
| Тема | Re: existing row not found by SELECT ... WHERE CTID = ? |
| Дата | |
| Msg-id | 2305902.1653580955@sss.pgh.pa.us обсуждение |
| Ответ на | Re: existing row not found by SELECT ... WHERE CTID = ? ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Ответы |
Re: existing row not found by SELECT ... WHERE CTID = ?
|
| Список | pgsql-general |
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thursday, May 26, 2022, Matthias Apitz <guru@unixarea.de> wrote:
>> Is there any way to get with the old CTID to the row, for example with
>> the old CTID to the new one which the row now has after the update of the
>> row?
> No, there is no link between old and new in the main table.
There is a forward link from the old CTID to the new, but we don't
provide any user-accessible way to use it. I wonder though if the
OP should be considering using SELECT FOR UPDATE in his cursor,
so that it'd automatically chain up to the newest row version.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера