Re: Using CTID system column as a "temporary" primary key

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Using CTID system column as a "temporary" primary key
Дата
Msg-id BDED177C-F85C-4667-A67C-C083DD76A9E2@thebuild.com
обсуждение исходный текст
Ответ на Re: Using CTID system column as a "temporary" primary key  (Sebastien Flaesch <sebastien.flaesch@4js.com>)
Ответы Re: Using CTID system column as a "temporary" primary key  (Sebastien Flaesch <sebastien.flaesch@4js.com>)
Список pgsql-general

> On Mar 28, 2023, at 03:39, Sebastien Flaesch <sebastien.flaesch@4js.com> wrote:
> Do I have to cast() ?

Yes:

    select * from t where ctid='(0,1)'::tid;

The string representation can be up to 17 characters: 10 for the page number, 4 for the tuple number, and three for the
delimiters.

Remember that updating a row changes its CTID.


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

Предыдущее
От: Sebastien Flaesch
Дата:
Сообщение: Re: Using CTID system column as a "temporary" primary key
Следующее
От: Dominique Devienne
Дата:
Сообщение: Plans for ON DELETE CASCADE? Which index is used, if at all?