Restart doesn't update new port setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Debian) |
Fix Released
|
Unknown
|
|||
postgresql-common (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Appeared on up to date ubuntu oneiric 32bit.
postgres 9.1 was running on port 5433, as there was an old postgres 8.4 listening on port 5432. After I purged postgres 8.4 via aptitude, I changed in
/etc/postgresql
port = 5433 # (change requires restart)
to
port = 5432 # (change requires restart)
As the line itself states, I tried
/etc/init.
but that wouldn't make postgres listen on the new port 5432, it kept on listening on port 5433.
I had to stop and start postgres via
/etc/init.
/etc/init.
to apply the new port setting.
In my opinion, either the hint in postgresql.conf should be altered to "#(change requires stop & start)" or the init.d script should reload the settings upon restart correctly.
Thanks for Your work!
description: | updated |
Changed in postgresql-common (Debian): | |
status: | Unknown → Fix Released |
This got fixed a while ago:
postgresql-common (123) unstable; urgency=medium
[...]
* PgCommon.pm, cluster_info(): If we have a PID file and can read it (i. e.
as root), prefer doing this over probing the port. This delivers the
correct result with e. g. "pg_ctlcluster restart" when the port got
changed in the configuration file. (Closes: #643850)
[...]