Re: PITR logging control program

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: PITR logging control program
Дата
Msg-id 20040429135210.GC2258@dcc.uchile.cl
обсуждение исходный текст
Ответ на PITR logging control program  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: PITR logging control program  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
On Thu, Apr 29, 2004 at 12:18:38AM -0400, Bruce Momjian wrote:

> OK, I looked over the code.  Basically it appears pg_arch is a
> client-side program that copies files from pg_xlog to a specified
> directory, and marks completion in a new pg_rlog directory.
> 
> The driving part of the program seems to be:
> 
>     while ( (n = read( xlogfd, buf, BLCKSZ)) > 0)
>         if ( write( archfd, buf, n) != n)
>             return false;
> 
> The program basically sleeps and when it awakes checks to see if new WAL
> files have been created.

Is the API able to indicate a written but not-yet-filled WAL segment?
So an archiver could copy the filled part, and refill it later.  This
may be needed because a segment could take a while to be filled.

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Hoy es el primer día del resto de mi vida"


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

Предыдущее
От: zhuangjifeng
Дата:
Сообщение:
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: PITR logging control program