forked from Aiven-Open/pghoard
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
walreceiver: Add experimental support for replicating WALs via PG rep…
…lication protocol You can now use "active_backup_mode": "walreceiver" in case you have a psycopg2 that supports the PostgreSQL replication protocol. At this time the support hasn't been merged into psycopg2 master but can be found from: psycopg/psycopg2#322 You can now use "active_backup_mode": "walreceiver" in case you have a psycopg2 that supports the PostgreSQL replication protocol. At this time the support hasn't been merged into psycopg2 master but can be found from: psycopg/psycopg2#322 The backup method "walreceiver" writes no extra WAL data to disk on the machine taking the backup. Before this when using pg_receivexlog mode pghoard first wrote the files uncompressed on disk once and then compressed them and wrote them on disk again causing roughly 1.5x the size of WAL writes just so pghoard could back the files up. We now also write the last flush_lsn position into pghoard state file and read it back from there when creating a walreceiver so we can continue from the last known position. Note that this will fail in case pghoard was shutdown uncleanly. (kill -9 or such)
- Loading branch information
Showing
10 changed files
with
325 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.