Re: Forcing wal rotation

Поиск
Список
Период
Сортировка
От Florian G. Pflug
Тема Re: Forcing wal rotation
Дата
Msg-id 44B7BA1A.8020904@phlo.org
обсуждение исходный текст
Ответ на Forcing wal rotation  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы Re: Forcing wal rotation  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Forcing wal rotation  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-hackers
A.M. wrote:
> On Fri, July 14, 2006 11:20 am, Florian G. Pflug wrote:
>> Hi
>>
>>
>> For my warm-standby-cluster I'm now saving the currently used wal using
>> rsync, to avoid loosing data from a few hours (or days) ago, when there is
>> little traffic, and thus the wal isn't rotated. For online backups, the
>> problem is even worse, because a backup might me unuseable even hours
>> after I called pg_stop_backup(), because the wal segment needed to bring
>> the backup to a consistent state might not have been archived at that
>> time.
>>

> How about an SQL-level function that calls the wal scripts? This would
> also allow "important" transactions to push data to the standy server
> regardless of the wal size.
That was the idea - providing pg_rotate_wal(), which would guarantee that
the wal is rotatted at least once if called. Thinking further about this,
for a first prove of concept, I'd be enough to write a C function
pg_current_walsegment(). pg_rotate_wal() could then be a plpgsql function,
that e.g. creates a temporary table, and fills it with data, until the
return value of pg_current_walsegment() changes.


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

Предыдущее
От: "Marko Kreen"
Дата:
Сообщение: Re: [PATCHES] [patch 0/9] annual pgcrypto update
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Forcing wal rotation