From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Thorsten Schöning <tschoening(at)am-soft(dot)de> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: When it's really necessary to enable WAR archiving in case of low level backups? |
Date: | 2019-07-07 17:36:39 |
Message-ID: | CAMkU=1xh-WGxE90tcaozW1S0-fYdPB8xEefGwb-+9RbQ8cTbXA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Sun, Jul 7, 2019 at 12:15 PM Thorsten Schöning <tschoening(at)am-soft(dot)de>
wrote:
> From my understanding, without actually archving WAL segments, the
> WAL would simply grow until archiving gets enabled, without any
> influence on if the backup is consistent or not.
This is true if you set archive_command to the empty string, or to a
command that returns a failure code (like the linux command 'false'). But
if you turn archive_mode to off, or if you use an archive_command that
always returns success despite not archiving (like the linux command
'true') then the WAL would not be retained but would be lost.
So you would have to go through a complex cycle of having it return success
without archiving, then just before the backup change it to return failure,
then change it to actually archive and return success, then once all needed
WAL is archived change once more to return success without archiving.
That is a lot of complexity. What does it get you? The normal way has the
archive happen at the same time as the base backup, and I guess that that
network traffic could delay the basebackup itself, which then means you
have to archive the WAL that was generated during that delay. That is
something, but it doesn't seem like much to justify the complexity.
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2019-07-08 00:27:16 | Re: are there any expectations about pg indexes having prefix compression? |
Previous Message | Thorsten Schöning | 2019-07-07 16:14:49 | When it's really necessary to enable WAR archiving in case of low level backups? |