Last active
October 5, 2017 15:23
-
-
Save sidmutha/a74ca962622df5992c3f2f2042b42326 to your computer and use it in GitHub Desktop.
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 | |
set -e | |
{ echo "host replication admin 0.0.0.0/0 trust"; } >> "$PGDATA/pg_hba.conf" |
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
# LOGGING | |
# log_min_error_statement = fatal | |
# log_min_messages = DEBUG1 | |
# CONNECTION | |
listen_addresses = '*' | |
# MODULES | |
shared_preload_libraries = 'decoderbufs' | |
# REPLICATION | |
wal_level = logical # minimal, archive, hot_standby, or logical (change requires restart) | |
max_wal_senders = 4 # max number of walsender processes (change requires restart) | |
#wal_keep_segments = 4 # in logfile segments, 16MB each; 0 disables | |
#wal_sender_timeout = 60s # in milliseconds; 0 disables | |
max_replication_slots = 4 # max number of replication slots (change requires restart) |
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
cat postgresql.conf.sample >> $PGDATA/postgresql.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment