Re: Possible bug in vacuum redo

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Possible bug in vacuum redo
Дата
Msg-id EKEJJICOHDIEMGPNIFIJEEIKGEAA.Inoue@tpf.co.jp
обсуждение исходный текст
Ответ на Possible bug in vacuum redo  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Possible bug in vacuum redo  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> -----Original Message-----
> From: Tom Lane
> 
> In the vacuum tuple-chain moving logic, shouldn't the lines that update
> the new tuple's t_ctid (vacuum.c lines 1882-1891 in current sources)
> be moved up to before the log_heap_move call at line 1866?
> 
> It appears to me that as the code stands, log_heap_move will log the new
> tuple containing the wrong t_ctid; therefore, if we crash and have to
> redo the transaction from WAL, the wrong t_ctid will be restored.  No?

AFAIR t_ctid isn't logged in WAL.

regards,
Hiroshi Inoue


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: contrib idea
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Possible bug in vacuum redo