Re: lifetime of the old CTID

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: lifetime of the old CTID
Дата
Msg-id A294E4C1-1177-401D-B170-BE9A7D0C959A@thebuild.com
обсуждение исходный текст
Ответ на Re: lifetime of the old CTID  (Matthias Apitz <guru@unixarea.de>)
Список pgsql-general

> On Jul 6, 2022, at 12:51, Matthias Apitz <guru@unixarea.de> wrote:
> it is uniqu to identify a row in a table once
> known.

I think the point that we are trying to make here is that a ctid *isn't* that.  There is no guarantee, at all, at any
level,that the ctid of a row will remain stable, not even between two SELECT statements.  (Although it doesn't right
now,I could easily image some kind of repack logic in PostgreSQL that runs on read operations, not just write.)  It
shouldn'tbe considered an API.  I understand that it might be painful to change to a generated primary key, but I think
thatwill be less painful in the long run than having to stay ahead of PostgreSQL's internals. 


В списке pgsql-general по дате отправления:

Предыдущее
От: Matthias Apitz
Дата:
Сообщение: Re: lifetime of the old CTID
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Seems to be impossible to set a NULL search_path