Skip to content

Instantly share code, notes, and snippets.

@sidmutha
Last active October 5, 2017 15:23
Show Gist options
  • Save sidmutha/a74ca962622df5992c3f2f2042b42326 to your computer and use it in GitHub Desktop.
Save sidmutha/a74ca962622df5992c3f2f2042b42326 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
{ echo "host replication admin 0.0.0.0/0 trust"; } >> "$PGDATA/pg_hba.conf"
# 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)
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