Re: Uninformative messages from pg_ctl

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Uninformative messages from pg_ctl
Дата
Msg-id 20071009112005.GH3093@svr2.hagander.net
обсуждение исходный текст
Ответ на Re: Uninformative messages from pg_ctl  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Uninformative messages from pg_ctl  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
On Tue, Oct 09, 2007 at 01:09:19PM +0200, Peter Eisentraut wrote:
> Am Dienstag, 9. Oktober 2007 schrieb Simon Riggs:
> > These messages from pg_ctl are not useful
> >
> > $ pg_ctl -D nonexistent stop
> > pg_ctl: PID file "nonexistent/postmaster.pid" does not exist
> > Is server running?
> >
> > The message should say
> > pg_ctl: Data Directory "nonexistent" does not exist
> 
> Well, this objection could apply to any place where a file is being opened.  
> I'm curious how you plan to sort out the difference, considering that open() 
> simply returns ENOENT in both cases.

You'd do opendir() on the directory part fisrt, I assume.

A question I had about it is, where are we wrt translations? When do we
plan string freeze? 

//Magnus


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Uninformative messages from pg_ctl
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Uninformative messages from pg_ctl