| От | Tom Lane |
|---|---|
| Тема | Re: Questions about update, delete, ctid... |
| Дата | |
| Msg-id | 13104.1154348717@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Questions about update, delete, ctid... (Martijn van Oosterhout <kleptog@svana.org>) |
| Список | pgsql-general |
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Mon, Jul 31, 2006 at 11:04:58AM +0200, DANTE Alexandra wrote:
>> I've just seen that I've done a mistake in my example. My question was :
>> is it correct to think that the ctid of the old version of the tuple is
>> a link to newer version ?
> Well, in your case where there are no other transactions running, yes.
> In the general case there may have been other updates so all you know
> is that the new tuple is a descendant of the old one. The chain of
> t_ctid links can be arbitrarily long.
It's probably worth pointing out here that the "ctid" column exposed
at the SQL level is not the same as t_ctid --- it's what the C code calls
t_self.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера