Re: Clean shutdown and warm standby

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Clean shutdown and warm standby
Дата
Msg-id 1243517367.24860.553.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Re: Clean shutdown and warm standby  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: Clean shutdown and warm standby
Список pgsql-hackers
On Thu, 2009-05-28 at 16:19 +0300, Heikki Linnakangas wrote:
> Simon Riggs wrote:
> > On Thu, 2009-05-28 at 14:04 +0300, Heikki Linnakangas wrote:
> > 
> >> I've committed a patch to do the RequstXLogSwitch() before shutdown 
> >> checkpoint as discussed. It seems safe to me. (sorry for the delay, and 
> >> thanks for the reminder)
> > 
> > Not sure if that is a fix that will work in all cases. 
> > 
> > There is a potential timing problem with when the archiver is shutdown:
> > that may now be fixed in 8.4, see what you think.
> 
> Can you elaborate?

Is the archiver still alive and working after the log switch occurs?

If the archiver is working, but has fallen behind at the point of
shutdown, does the archiver operate for long enough to ensure we are
archived up to the point of the log switch prior to checkpoint?

> > Also if archiving is currently stalled, then files will not be
> > transferred, even if you switch xlogs. So this is at best a partial fix
> > to the problem and the need for a manual check of file contents
> > remains. 
> 
> Yep. Maybe we should print the filename of the last WAL segment to the 
> log at shutdown, so that you can easily check that you have everything 
> in the archive.

You still need a script to read that and synchronize file contents.

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



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Clean shutdown and warm standby
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: New trigger option of pg_standby