Re: pg_basebackup problem... - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: pg_basebackup problem...
Date
Msg-id 55C3C073.4000207@gmx.net
Whole thread Raw
In response to Re: pg_basebackup problem...  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: pg_basebackup problem...  (John Scalia <jayknowsunix@gmail.com>)
List pgsql-admin
On 8/6/15 12:49 PM, Kevin Grittner wrote:
>> 2) If a WAL segment is in fact required for the backed up DB to
>> > start, why would pg_basebackup not include those by default? To
>> > not do so, doesn't create a backup file, just in this case, a
>> > tarball that's worthless.
> ... unless you are archiving the WAL to somewhere that it will be
> kept long enough to be usable for such purposes.  If you are (and I
> highly recommend that you do so), including WAL in the base backup
> is a waste of both bandwidth and storage space.

This is arguably an artifact of the evolution of replication in
PostgreSQL.  You used to do tar backup + archiving, then you could
switch to pg_basebackup + archiving, and nowadays you could switch to
pg_basebackup without archiving, but the default behavior of
pg_basebackup still caters to the old case.



pgsql-admin by date:

Previous
From: John Scalia
Date:
Subject: Re: pg_basebackup problem...
Next
From: John Scalia
Date:
Subject: Re: pg_basebackup problem...