February 2017
Intermediate to advanced
536 pages
28h 47m
English
PostgreSQL WAL files are very compressible. As such, we can save quite a bit of space while storing them for long periods of time. Since PostgreSQL archive_command can be anything we wish, we can incorporate compression right into the process. For example, we could use this postgresql.conf setting instead:
archive_command = 'gzip -qc %p > /db/wal_archive/%f'
Now, whenever PostgreSQL moves a WAL file into the archive, it also compresses it.
Read now
Unlock full access