pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to recover from compressed wal archieve in windows
Date: Thu, 21 May 2020 09:09:44 +0300
Message-ID: <E0431B5B9FA54B01B4E63F025B75BE94@dell2> (raw)
In-Reply-To: <e4232c0c-c54e-6167-9af8-80fde429d8c1@aklaver.com>
References: <241F4C06123741D8BA0283C8690A5F12@dell2>
	<aa6d4399-1b99-5b32-0fa8-67abe195beb3@aklaver.com>
	<78E8CC8DEEFB439F8930FF1980057A56@dell2>
	<e4232c0c-c54e-6167-9af8-80fde429d8c1@aklaver.com>

Hi!

>> Will wal_compression=on will produce compressed wal files to additional 
>> compression is not needed?
>Yes. Not sure how it will play with the streaming that pg_receivewal does.

I looked into WAL files created with wal_compression=on in pg_wal directory.
They still contain lot of ascii data from database which is not packed.
It looks like file WAL files content is not compressed.

>Maybe the best thing is to back up a bit and let us know what it is you 
>are trying to achieve?

Trying to add PITR possibility from hot standby server which uses async binary streaming replication without named slot.
Server creates 1 GB WAL files per day.
pg_receivewal with --compress=9 produces 3..5MB WAL files instead of 16MB
Trying to save disk space. 
I set windows directory attribute to "compressed" in wal archieve directory. Transparent compression is then applied by OS.

However when WAL files are copied to other device, copy is perfomed probably in uncompressed form in windows.
How to set compressed attribute to pg_wal directory in Linux ext4 file system ?

Andrus.





view thread (13+ messages)

Message-ID: <E0431B5B9FA54B01B4E63F025B75BE94@dell2>
Permalink:  ../E0431B5B9FA54B01B4E63F025B75BE94@dell2/
Also on:    postgresql.org/message-id/E0431B5B9FA54B01B4E63F025B75BE94@dell2

 · 

reply

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: kobruleht2@hot.ee, adrian.klaver@aklaver.com
  Subject: Re: How to recover from compressed wal archieve in windows
  In-Reply-To: <E0431B5B9FA54B01B4E63F025B75BE94@dell2>
  References: <241F4C06123741D8BA0283C8690A5F12@dell2> <aa6d4399-1b99-5b32-0fa8-67abe195beb3@aklaver.com> <78E8CC8DEEFB439F8930FF1980057A56@dell2> <e4232c0c-c54e-6167-9af8-80fde429d8c1@aklaver.com> <E0431B5B9FA54B01B4E63F025B75BE94@dell2>

* 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