Re: Problem with streaming replication, backups, and recovery (9.0.x)

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Problem with streaming replication, backups, and recovery (9.0.x)
Дата
Msg-id 4D92E23B.5070200@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Problem with streaming replication, backups, and recovery (9.0.x)  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: Problem with streaming replication, backups, and recovery (9.0.x)  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On 30.03.2011 09:25, Fujii Masao wrote:
> On Wed, Mar 30, 2011 at 11:39 AM, Fujii Masao<masao.fujii@gmail.com>  wrote:
>> On Wed, Mar 30, 2011 at 12:54 AM, Heikki Linnakangas
>> <heikki.linnakangas@enterprisedb.com>  wrote:
>>> Hmm, why did we change that?
>>
>> I'm not sure, but I guess that's because I missed the case where crash
>> recovery starts from the backup :(
>>
>>> It seems like a mistake, the database is not
>>> consistent until you reach the backup stop location, whether or not you're
>>> doing archive recovery. +1 for reverting that, and backpatching it as well.
>>
>> Agreed.
>
> Attached patch reverts that. Comments?

Looks good, committed.

We could also improve the error message. If we haven't reached the 
end-of-backup location, we could say something along the lines of:

ERROR: WAL ends before the end of online backup
HINT: Online backup must be ended with pg_stop_backup(), and all the WAL 
up to that point must be available at recovery.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Replication server timeout patch
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Replication server timeout patch