About a message when "pg_ctl -w start" failed

Поиск
Список
Период
Сортировка
От Tatsuhito Kasahara
Тема About a message when "pg_ctl -w start" failed
Дата
Msg-id 48AD632B.2020709@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: About a message when "pg_ctl -w start" failed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: A smaller default postgresql.conf
Следующее
От: Tom Lane
Дата:
Сообщение: Re: About a message when "pg_ctl -w start" failed