Re: Re[2]: [HACKERS] Fwd: Joins and links

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re[2]: [HACKERS] Fwd: Joins and links
Дата
Msg-id 199907052125.RAA07399@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Re[2]: [HACKERS] Fwd: Joins and links  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Leon <leon@udmnet.ru> writes:
> > I'm afraid that's mainly because fields in Postgres have variable
> > length and after update they go to the end of the table. Am I right?
> > In that case there could be done such referencing only with
> > tables with wixed width rows, whose updates can naturally be done
> > without moving. It is a little sacrifice, but it is worth it.
> 
> No, you are not right.  Tuple updates can *never* be done without
> moving the tuple, because the old tuple value must not be overwritten
> until and unless the transaction is committed.  (Under MVCC, it may
> need to stick around even longer than that, I believe.)  Thus, a tuple
> update would require an update (and move) of every referencing tuple,
> which could cascade into updates of tuples that reference those tuples,
> etc.

Yes, Thanks, Tom.  This is exactly the issue.


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Leon
Дата:
Сообщение: Re[6]: [HACKERS] Fwd: Joins and links
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: [HACKERS] Fwd: Joins and links