Re: Include WAL in base backup

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Include WAL in base backup
Дата
Msg-id AANLkTik+uhk8BUd2JKGxKhCLtiLi3GQP9T4wEfWxg7rd@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Include WAL in base backup  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Include WAL in base backup  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Tue, Jan 25, 2011 at 16:34, Magnus Hagander <magnus@hagander.net> wrote:
> On Tue, Jan 25, 2011 at 15:04, Fujii Masao <masao.fujii@gmail.com> wrote:
>> On Tue, Jan 25, 2011 at 10:28 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
>>>> (the discussed changse above have been applied and pushed to github)
>>>
>>> Thanks! I'll test and review that.
>>
>> WAL file might get recycled or removed while walsender is reading it.
>> So the WAL file which pg_basebackup seemingly received successfully
>> might be actually invalid. Shouldn't we need to check that what we read
>> is valid as XLogRead does?

We should, and the easiest way is to actually use XLogRead() since the
code is already there. How about the way in this patch?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Вложения

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

Предыдущее
От: Gurjeet Singh
Дата:
Сообщение: Re: Patch to add a primary key using an existing index
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Patch to add a primary key using an existing index