Created
November 25, 2019 19:35
-
-
Save blackandred/03882e66917c62cda14f42f4ce7d8844 to your computer and use it in GitHub Desktop.
Debug PostgreSQL replication
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
#!/bin/bash | |
# | |
# Perform a test replication into the /tmp/wal-test directory | |
# This command will tell you what is wrong with the replication | |
# | |
pg_receivewal -h 127.0.0.1 -p 5444 --user replication -D /tmp/wal-test/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FAQ:
Put it to the directory shown by
SHOW data_directory;