bug report: 7.4beta3 pg_ctl log handling

From: Arguile <arguile(at)lucentstudios(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: bug report: 7.4beta3 pg_ctl log handling
Date: 2003-10-02 04:39:45
Message-ID: 1065069586.26654.78.camel@broadswd
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Simplest case to test is:

pg_ctl start -D /valid/db/dir -l /invalid/dir
pg_ctl: /invalid/dir: No such file or directory
postmaster successfully started

Postmaster hasn't started and the error could probably use some work.

Perhaps some more tests after line 340 of pg_ctl would be appropriate.
Something along the lines of (perlish pseudocode):

if ( -w $logfile || ( -w `dirname $logfile` )

Should it also test -O to ensure ownership if the file does exist? I'll
brush up on my sh and submit a patch if requested.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-10-02 04:54:40 Re: bug report: 7.4beta3 pg_ctl log handling
Previous Message Tom Lane 2003-10-02 03:38:55 Re: is this my date problem