Reputation: 45
I am trying to install and create a PostgreSQL master-slave replication.
I have a problem after configured postgresql.conf
and pg_hba.conf
; I can't restart Postgres with systemctl restart postgresql-11.service
. It complained
AUTHENTICATING for org.freedesktop.systemd1.manage-units --Authentication is required to manage system services or units
I also cannot start Postgres with pg_ctl
, it complains about
unrecognized configuration parameter checkpoint_segments in file postgresql.conf line 215
Is it wrong to set checkpoint_segments=8
in postgresql.conf
?
How can I restart Postgres?
My postgresql.conf
:
wal_level = hot_standby
max_wal_senders = 3
checkpoint_segments = 8
wal_keep_segments = 8
hot_standby = on
Upvotes: 0
Views: 2206
Reputation: 822
Will you please check if you have max_wal_size = 1G or max_wal_size = 1GB in conf file. in-case it is 1G, you will not be able to start the service. it should be GB
Upvotes: 1
Reputation: 139
I'd like to post it as an at least partial answer, since this is the cause of the unrecognized configuration parameter
error.
According to Laurenz's answer, parameter checkpoint_segments
doesn't exist anymore. The replacement is max_wal_size
.
Also, confirming what Laurenz said up there, "AUTHENTICATING" line is not related to Postgres. With all credits to them, you should search for problems in Linux services.
Upvotes: 1