BUG #14190: 'silent_mode=on', 'pg_ctl restart -w' or 'pg_ctl start -w' reports error

Started by Henri KYalmost 10 years ago2 messagesbugs
Jump to latest
#1Henri KY
sideuxb-ky.consultant@dgfip.finances.gouv.fr

The following bug has been logged on the website:

Bug reference: 14190
Logged by: Henri Ky
Email address: sideuxb-ky.consultant@dgfip.finances.gouv.fr
PostgreSQL version: 9.1.20
Operating system: CentOS 6.5
Description:

From version 9.1.20, with "silent_mode=on", 'pg_ctl restart -w -D $PGDATA -m
fast' or 'pg_ctl stop -w -D $PGDATA -m fast' reports:

waiting for server to start.... stopped waiting
pg_ctl: could not start server
Examine the log output.

and returns '1' as execution code.

Despite the error message, the server is running without error in syslog.

Regards

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Henri KY (#1)
Re: BUG #14190: 'silent_mode=on', 'pg_ctl restart -w' or 'pg_ctl start -w' reports error

sideuxb-ky.consultant@dgfip.finances.gouv.fr writes:

From version 9.1.20, with "silent_mode=on", 'pg_ctl restart -w -D $PGDATA -m
fast' or 'pg_ctl stop -w -D $PGDATA -m fast' reports:

waiting for server to start.... stopped waiting
pg_ctl: could not start server
Examine the log output.

silent_mode is gone entirely in 9.2 and later. IIRC, one of the reasons
for removing it was that it breaks pg_ctl -w. Don't use it if you intend
to start/stop the postmaster that way.

regards, tom lane

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs