Question about wal_compression and what to expect

From: "Wetmore, Matthew (CTR)" <Matthew(dot)Wetmore(at)express-scripts(dot)com>
To: Sean O'Grady <sean(at)thingee(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Question about wal_compression and what to expect
Date: 2023-06-20 18:35:30
Message-ID: f875f6df936b4a07b066b6cb04ef7abf@express-scripts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

From my understanding,

Wal_compression will compress full page writes in the wal file. The size of your wal is configurable.

So for your 16MB wal, it’s already compressed into the wal, and your wal_size won’t change. (just more data can fit into your 16MB)

As far as archiving, I create a dir, then tar.gz the dir for storage. (if that was your question)

From: Sean O'Grady <sean(at)thingee(dot)com>
Sent: Tuesday, June 20, 2023 11:19 AM
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: [EXTERNAL] Question about wal_compression and what to expect

Hello,

I've enabled wal_compression however I do not see any change in the 16MB size for each WAL file. Through all my googling and searching the mailing lists, I could not find a description if a change *should* be expected even though many of the articles I've read indicate compression can save disk space.

I am currently thinking that the records in the WAL file are compressed for the purpose of writing less data to disk, but that the file is still padded to 16MB. If so, does that mean to realize a space savings for archiving that my archive_command should compress the file (gzip, bz2, etc)?

Thanks,
Sean O'Grady

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message lejeczek 2023-06-21 07:35:27 Bucardo in a 3-way?
Previous Message Sean O'Grady 2023-06-20 18:18:31 Question about wal_compression and what to expect