Re: How to recover from compressed wal archieve in windows

From: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Andrus <kobruleht2(at)hot(dot)ee>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to recover from compressed wal archieve in windows
Date: 2020-05-20 18:43:22
Message-ID: 8030BE39-3823-4831-8F9B-6516DCF5175F@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)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(dot)klaver(at)aklaver(dot)com
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2020-05-20 19:09:14 Re: How to recover from compressed wal archieve in windows
Previous Message Adrian Klaver 2020-05-20 18:36:09 Re: How to recover from compressed wal archieve in windows