Re: Transaction Snapshots and Hot Standby

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Transaction Snapshots and Hot Standby
Дата
Msg-id 1221491617.3913.1412.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Re: Transaction Snapshots and Hot Standby  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Mon, 2008-09-15 at 16:26 +0300, Heikki Linnakangas wrote:
> In any case, 
> we'll need the capability in the slave to notice when it's about to 
> remove a tuple that's still visible to a snapshot in the slave.

Looks like what I'll do is this:

Alter functions in pruneheap.c so that we bubble up the latest xid that
is being removed as part of block cleaning. We then add that xid into
the WAL record for cleaning.

If latest xid of clean is ahead of oldestxmin of running queries on
standby then Startup process needs to take action, of some kind.

Re-examining the tuples in WAL apply seems bad plan, since we'd have to
touch stuff in the block twice and juggle the locks.

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



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Integrating hash index tupledesc hack a bit better
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: rmgr hooks and contrib/rmgr_hook