Re: Uninformative messages from pg_ctl

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Simon Riggs <simon(at)2ndquadrant(dot)com>
Subject: Re: Uninformative messages from pg_ctl
Date: 2007-10-09 11:20:05
Message-ID: 20071009112005.GH3093@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magne Mæhre 2007-10-09 11:49:40 Re: Timezone database changes
Previous Message Peter Eisentraut 2007-10-09 11:09:19 Re: Uninformative messages from pg_ctl