Re: PATCH: Exclude unlogged tables from base backups

Поиск
Список
Период
Сортировка
От David Steele
Тема Re: PATCH: Exclude unlogged tables from base backups
Дата
Msg-id b947f3a1-cc9d-2aec-da43-ce19c06c22a2@pgmasters.net
обсуждение исходный текст
Ответ на Re: PATCH: Exclude unlogged tables from base backups  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On 12/13/17 10:04 AM, Stephen Frost wrote:
> 
> Just to be clear- the new base backup code doesn't actually *do* the
> non-init fork removal, it simply doesn't include the non-init fork in
> the backup when there is an init fork, right?

It does *not* do the unlogged non-init fork removal.  The code I 
refactored in reinit.c is about identifying the forks, not removing 
them.  That code is reused to determine what to exclude from the backup.

I added the regression tests to ensure that the behavior of reinit.c is 
unchanged after the refactor.

> We certainly wouldn't want a basebackup actually running around removing
> the main fork for unlogged tables on a running and otherwise healthy
> system. ;)

That would not be good.

-- 
-David
david@pgmasters.net


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: server crash with CallStmt
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: WIP: a way forward on bootstrap data