Hello,
We are experimenting with backup compression. As soon as we set the backup_compression* parameters, we notice the following message is written to the barman.log file when barman cron is executed:
barman.postgres WARNING: Forcing PostgreSQLConnection cleanup during process shut down.
Does anyone know what might be causing the message?
Here are some the of the relevant environment settings:
Barman 3.4 (installed on the same host as a Postgres 14.7 database)
RHEL 9.1
backup_method = postgres
backup_compression = gzip
backup_compression_format = tar
backup_compression_location = client
We can successfully perform a backup to local storage with backup_compression enabled, and we see the backup size is 3.4 MiB for the most recent backup, compared to 25.6 MiB for all previous backups, which were taken without compression:
$ barman list-backups TESTDB2
TESTDB2 20230317T192605 - Fri Mar 17 19:26:05 2023 - Size: 3.4 MiB - WAL Size: 0 B
TESTDB2 20230317T145243 - Fri Mar 17 14:52:44 2023 - Size: 25.6 MiB - WAL Size: 51.1 KiB
TESTDB2 20230316T193002 - Thu Mar 16 19:30:03 2023 - Size: 25.6 MiB - WAL Size: 112.7 KiB
TESTDB2 20230315T193001 - Wed Mar 15 19:30:03 2023 - Size: 25.6 MiB - WAL Size: 64.4 KiB
TESTDB2 20230315T182601 - Wed Mar 15 18:26:03 2023 - Size: 25.6 MiB - WAL Size: 48.6 KiB
Also, we discovered another issue when running with backup_compression at the same time as using a hook script to replicate the backup to an S3 bucket -- the backup would hang trying to execute the hook script. I will post a separate message for that. In the above scenario, no hook scripts were enabled.
Thanks in advance for any insight you can provide.
Best regards,
Steve