Re: Shutting down a warm standby database in 8.2beta3

Поиск
Список
Период
Сортировка
От Stephen Harris
Тема Re: Shutting down a warm standby database in 8.2beta3
Дата
Msg-id 20061124122052.GA28516@pugwash.spuddy.org
обсуждение исходный текст
Ответ на Re: Shutting down a warm standby database in 8.2beta3  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Shutting down a warm standby database in 8.2beta3  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
On Thu, Nov 23, 2006 at 02:47:27PM -0500, Tom Lane wrote:

> It would back up to whereever the last recovery checkpoint was.  I think
> we've got it hardwired at one recovery checkpoint per 100 source
> checkpoints ... maybe that's too far apart.

I'm talking out of my arse now, since I have no ideas of the internals
of postgres recovery, but maybe a recovery checkpoint can be added each
time it asks for a new archive file, or 100 source checkpoints, whatever
comes first.

A database that is mostly idle (eg overnight) but has 1 or 2 critical
transactions will have received lots of archive logs (from the 5 minute
checkpoint timeout) but not necessarily enough to cause recovery to
checkpoint.  This could mean needing to keep a large number of shipped
logfiles available on the standby system "just in case".

-- 

rgds
Stephen


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

Предыдущее
От: alfranio correia junior
Дата:
Сообщение: Re: [Replica-hooks-discuss] Integrating Replication ino
Следующее
От: John DeSoi
Дата:
Сообщение: Re: Windows psql changes after 8.1.1