Re: ctid access is slow

Поиск
Список
Период
Сортировка
Искать
От
Jim C. Nasby
Тема
Re: ctid access is slow
Дата
Msg-id
20050824011149.GE96732@pervasive.com
Ответ на
Re: ctid access is slow (Jeff Eckermann)
Список
Дерево обсуждения
Re: ctid access is slow "Jeff Eckermann" <jeff_eckermann@yahoo.com>
Re: ctid access is slow "Jim C. Nasby" <jnasby@pervasive.com>
Re: ctid access is slow Jeff Eckermann <jeff_eckermann@yahoo.com>
Re: ctid access is slow "Jim C. Nasby" <jnasby@pervasive.com>
Re: ctid access is slow Karsten Hilbert <Karsten.Hilbert@gmx.net>
Re: ctid access is slow Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: ctid access is slow Tom Lane <tgl@sss.pgh.pa.us>
Re: ctid access is slow Jeff Eckermann <jeff_eckermann@yahoo.com>
On Wed, Aug 24, 2005 at 09:26:10AM +0930, Jeff Eckermann wrote:
> The ctid value can be useful in a multi user application, to check whether a 
> record has been changed by another user, before committing changes. 
> Whenever a record is updated the ctid value will be changed, so by storing 
> the ctid value when first fetching the record, that can be compared with the 
> current ctid value before doing the update.

I believe that's not necessarily true. If you select a tuple and it's
ctid and it's updated more than once with a vacuum in-between I believe
it could end up back in the same position, which would mean the same
ctid.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software        http://pervasive.com        512-569-9461
В списке pgsql-general по дате отправления
От: Mark Probert
Дата:
Сообщение: Re: [newbie] server startup
От: Jeff Eckermann
Дата:
Сообщение: Re: ctid access is slow
FAQ