pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Magnus Hagander <magnus@hagander.net>
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 14:55:33 -0500
Message-ID: <19438.1290023733@sss.pgh.pa.us> (raw)
In-Reply-To: <201011171947.oAHJlmh10273@momjian.us>
References: <201011171947.oAHJlmh10273@momjian.us>

Bruce Momjian <bruce@momjian.us> writes:
> Agreed.  So how do we pass that info to libpq without exceeding the
> value of fixing this problem?  Should we parse pg_controldata output? 
> pg_upgrade could use machine-readable output from that too.

pg_controldata seems 100% unrelated to this problem.  You cannot even
tell if the postmaster is alive just by inspecting pg_control.

>> What we actually want here, and don't have, is the fabled pg_ping
>> protocol...

> Well, we are basically figuring how to implement that with this fix,
> whether it is part of pg_ctl or a separate binary.

Possibly the cleanest fix is to implement pg_ping as a libpq function.
You do have to distinguish connection failures (ie connection refused)
from errors that came back from the postmaster, and the easiest place to
be doing that is inside libpq.

			regards, tom lane



view thread (43+ messages)  latest in thread

Message-ID: <19438.1290023733@sss.pgh.pa.us>
Permalink:  ../19438.1290023733@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19438.1290023733@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, bruce@momjian.us, magnus@hagander.net, 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: <19438.1290023733@sss.pgh.pa.us>
  References: <201011171947.oAHJlmh10273@momjian.us> <19438.1290023733@sss.pgh.pa.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