Re: pg_ctl reports succes when start fails

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_ctl reports succes when start fails
Date: 2003-10-23 14:36:02
Message-ID: 3F97E752.5000500@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

Tom Lane wrote:

>Tommi Maekitalo <t(dot)maekitalo(at)epgmbh(dot)de> writes:
>
>
>>I installed 7.4beta5, created a data-dir and tried to start postgresql with
>>pg_ctl without initdb. As expected, this will fail. But pg_ctl tells me
>>"postmaster successfully started", after a fatal error, which looks very
>>confusing. When I use -l for specifying a logfile, I don't even see the
>>error, but only the success-message.
>>
>>
>
>If you don't use -w, then pg_ctl doesn't wait around to see whether the
>postmaster started or not. It'd probably be a good idea for it to issue
>a less positive message in this case, maybe only "postmaster launched".
>
>I also wonder why -w isn't the default.
>
>
>
It is for stop but not for start/restart, which does seem a bit odd.

On a slightly related note, I see that this is still a shell script, as
are initlocation, ipcclean and pg_config. I assume these will have to be
rewritten in C for the Win32 port?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-10-23 14:36:35 Re: pg_ctl reports succes when start fails
Previous Message Josh Berkus 2003-10-23 14:08:24 Re: is GiST still alive?

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-10-23 14:36:35 Re: pg_ctl reports succes when start fails
Previous Message Tom Lane 2003-10-23 13:39:30 Re: pg_ctl reports succes when start fails