Skip to main content

Primary node configuration files

Edit the configuration files on the Primary server, as required.

To edit the postgresql.conf file:

  1. Go to C:\Program Files\PostgreSQL\14\data, and open the postgresql.conf file.

  2. In the file, edit the following configuration parameters:

    • listen_addresses = '*'
    • port = 5432
    • max_connections = 100
    • wal_level = hot_standby
    • archive_mode = always
    • archive_timeout = 0
    • max_wal_senders = 1
    • wal_keep_segments = 60
    • wal_sender_timeout = 60s To edit pg_hba.conf file:
  3. Go to C:\Program Files\PostgreSQL\14\data and open the pg_hba.conf file.

  4. In the file, edit the following configuration parameter:

    host replication postgres <ip>/32 trust