|From:||David Steele <david(at)pgmasters(dot)net>|
|Subject:||PATCH: Exclude unlogged tables from base backups|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
Including unlogged relations in base backups takes up space and is
wasteful since they are truncated during backup recovery.
The attached patches exclude unlogged relations from base backups except
for the init fork, which is required to recreate the main fork during
Some refactoring of reinit.c was required to reduce code duplication but
the coverage report showed that most of the interesting parts of
reinit.c were not being tested. This patch adds coverage for reinit.c.
Refactor reinit.c to allow other modules to identify and work with
unlogged relation forks.
Exclude unlogged relation forks (except init) from pg_basebackup to save
space (and time).
I decided not to try and document unlogged exclusions in the continuous
backup documentation yet (they are noted in the protocol docs). I would
like to get some input on whether the community thinks this is a good
idea. It's a non-trivial procedure that would be easy to misunderstand
and does not affect the quality of the backup other than using less
I'll add these patches to the next CF.
|Next Message||Andres Freund||2017-12-12 22:52:34||Re: PATCH: Exclude unlogged tables from base backups|
|Previous Message||Chapman Flack||2017-12-12 22:09:58||Re: [HACKERS] Custom compression methods|