From: Bruce Momjian <bruce@momjian.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Cc: Mark Llewellyn <mark_llewellyn@adp.com>
Cc: pgsql-hackers@postgresql.org
Cc: Sujeet Rajguru <sujeet.rajguru@enterprisedb.com>
Subject: Re: Re: [BUGS] BUG #5650: Postgres service showing as stopped when in fact it is running
Date: Wed, 17 Nov 2010 13:57:19 -0500 (EST)
Message-ID: <201011171857.oAHIvJr19227@momjian.us> (raw)
In-Reply-To: <AANLkTikoguB88dO125RfPHzOu0vrhLc88WyGerDChhWK@mail.gmail.com>
Magnus Hagander wrote:
> On Wed, Nov 17, 2010 at 19:50, Bruce Momjian <bruce@momjian.us> wrote:
> > Magnus Hagander wrote:
> >> Does this actually solve the *problem*, though? The problem is not
> >> what is reported ?on stdout/stderr, the problem is that the net result
> >> is that the server is reported as not started (by the service control
> >> manager) when it actually *is* started. In this case, stderr doesn't
> >> even go anywhere. What happens if you *don't* Ctrl-C it?
> >
> > I was just going to post on that. ?:-) ?Right now, it prints the FATAL
> > and keeps printing 60 times, then says not running. ?Should we just exit
> > on FATAL and output a special exit string, or say running?
>
> >From the perspective of the service control manager, it should say
> running. That might break other scenarios though, but i'm not sure - I
> think we can safely say the server is running when we try to log in
> and get a password failure.
That was another part of the discussion. Right now we report any FATAL,
so it might be a password problem, or something else, and it seems doing
all FATALs is the best idea because it will catch any other cases like
this.
Is FATAL, in general, enough to conclude the server is running?
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, magnus@hagander.net, tgl@sss.pgh.pa.us, ashesh.vashi@enterprisedb.com, mark_llewellyn@adp.com, pgsql-hackers@postgresql.org, sujeet.rajguru@enterprisedb.com
Subject: Re: [BUGS] BUG #5650: Postgres service showing as stopped when in fact it is running
In-Reply-To: <201011171857.oAHIvJr19227@momjian.us>
References: <AANLkTikoguB88dO125RfPHzOu0vrhLc88WyGerDChhWK@mail.gmail.com> <201011171857.oAHIvJr19227@momjian.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox