Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
PostgreSQL 18.6 upgrade, schedule configurability and logging improvements (v1.1.0)
Summary
Upgrades the image to PostgreSQL 18.6 and WAL-G v3.0.9, makes the backup schedule configurable via environment variables, moves all logging to container stdout (
docker logs), and improves the reliability of cron jobs and the initial backup.Key changes
1. Version upgrades
wal-g-pg-24.04-*)2. Configurable backup schedule
WALG_INCREMENTAL_SCHEDULE(default:0 0,2,6,8,10,12,14,18,20,22 * * *— every 2 hours except full-backup hours)WALG_FULL_BACKUP_SCHEDULE(default:0 4,16 * * *— twice a day)WALG_CLEANUP_SCHEDULE(default:0 5 * * *— daily at 5 AM)3. stdout logging instead of log files
/var/log/wal-g/*.login all scripts — logs are now available viadocker logs(container best practice, compatible with Docker logging drivers: json-file, fluentd, loki, etc.)/proc/1/fd/1(PID 1)cleanup-cron.sh(no longer needed)4. Cron job fixes
postgresviagosuflock -nto prevent concurrent job execution5. Data directory detection
SHOW data_directoryinstead of hardcoded/var/lib/postgresql/data(fallback:PGDATA)6. Initial backup reliability
/proc/PID/comm7. Docs
.env.exampleupdated: new schedule, environment variables,docker logsusage, removed the log volume from the compose exampleBreaking changes
/var/log/wal-g/— usedocker logsinstead. If you mounted a logs volume, it can be removed.