About a message when "pg_ctl -w start" failed - Mailing list pgsql-hackers

From Tatsuhito Kasahara
Subject About a message when "pg_ctl -w start" failed
Date
Msg-id 48AD632B.2020709@oss.ntt.co.jp
Whole thread Raw
Responses Re: About a message when "pg_ctl -w start" failed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi.

When we perform "pg_ctl -w start", postgres try to connect to
postgres-database until timeout.

If a user who perform "pg_ctl -w start" does not have authority to connect
postgres-database, pg_ctl will return 1 and show "could not start server" message.
But, in fact server is already starting. Therefore, users sometimes confuse.

I think that if we failed on test_postmaster_connection(), pg_ctl might
want to return 0 and show the message like following...
"server starting, but could not connect server. Check your authority."

Your thoughts?

Best regards.
-- 
Tatsuhito Kasahara
kasahara.tatsuhito@oss.ntt.co.jp


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: A smaller default postgresql.conf
Next
From: Tom Lane
Date:
Subject: Re: About a message when "pg_ctl -w start" failed