Re: Hot standby and b-tree killed items

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Hot standby and b-tree killed items
Дата
Msg-id 1229710177.4793.567.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Re: Hot standby and b-tree killed items  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Fri, 2008-12-19 at 10:52 +0000, Simon Riggs wrote:

> >  You could 
> > conservatively use OldestXmin as latestRemovedXid, but that could stall 
> > the WAL redo a lot more than necessary. Or you could store 
> > latestRemovedXid in the page header, but that would need to be 
> > WAL-logged to ensure that it's valid after crash. Or you could look at 
> > the heap to fetch the xmin/xmax, but that would be expensive.
> 
> Agreed. Probably need to use OldestXmin then.

Just finished coding this up, plus TODO item to pin every index page.
Will post after some further testing.

Used RecentOldestXmin.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Hot standby and b-tree killed items
Следующее
От: Martin Pihlak
Дата:
Сообщение: Re: SQL/MED compatible connection manager