From: Paul Förster <paul.foerster@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Andrus <kobruleht2@hot.ee>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: How to recover from compressed wal archieve in windows
Date: Wed, 20 May 2020 20:43:22 +0200
Message-ID: <8030BE39-3823-4831-8F9B-6516DCF5175F@gmail.com> (raw)
In-Reply-To: <aa6d4399-1b99-5b32-0fa8-67abe195beb3@aklaver.com>
References: <241F4C06123741D8BA0283C8690A5F12@dell2>
<aa6d4399-1b99-5b32-0fa8-67abe195beb3@aklaver.com>
Hi Andrus, hi Adrian,
see:
25.3.6.2. Compressed Archive Logs
https://www.postgresql.org/docs/12/continuous-archiving.html#BACKUP-TIPS
Hope this helps in dealing with compressed WAL files.
Cheers,
Paul
> On 20. May, 2020, at 20:36, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> On 5/20/20 8:08 AM, Andrus wrote:
>> In windows 10
>> pg_receivewal --directory="d:\wallog" --verbose --compress=9
>> is used to archieve WAL.
>> This creates .gz files
>> For restore
>> restore_command='copy "D:\\wallog\\%f" "%p"'
>
> I'm guessing:
>
> restore_command='copy "D:\\wallog\\%f.gz" "%p"'
>
> will get you the file.
>
> The next problem is that I'm pretty sure a WAL file with *.gz extension will not be able to be processed directly by the server. So you are going to have to uncompress it at some point before it gets restored.
>
>
>> is used.
>> Restore shows "file not found" errors in console. Thi sis probably because %f argument is WAL file name without extension.
>> How to use compressed WAL files for WAL archieve and restore in windows ?
>> Andrus.
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, adrian.klaver@aklaver.com, kobruleht2@hot.ee
Subject: Re: How to recover from compressed wal archieve in windows
In-Reply-To: <8030BE39-3823-4831-8F9B-6516DCF5175F@gmail.com>
References: <241F4C06123741D8BA0283C8690A5F12@dell2> <aa6d4399-1b99-5b32-0fa8-67abe195beb3@aklaver.com> <8030BE39-3823-4831-8F9B-6516DCF5175F@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox