Followed the official repmgr document, I set these items to the configuration file:
shared_preload_libraries = 'repmgr'
max_wal_senders = 10
max_replication_slots = 10
wal_level = 'hot_standby'
hot_standby = on
archive_mode = on
However, in the /var/lib/pgsql/10/data/postgresql.conf
file, something default as
#wal_level = replica # minimal, replica, or logical
# (change requires restart)
Doesn't have hot_standby
option.
If I use the config as repmgr document, when I want to create a database or user, alwasy hanging.
createuser -s myuser
createdb -E UNICODE -l en_US.UTF-8 -T template0 mydb -O myuser
But use the default postgresql configuration will work well.
So how to use repmgr
with PostgreSQL 10 correctly?
hot_standby
is not a value forwal_level
it's a separate property (which needs to go on a line of its own)