Re: Bug? 'psql -l' in pg_ctl?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, grasshacker(at)over-yonder(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Bug? 'psql -l' in pg_ctl?
Date: 2000-11-29 18:12:00
Message-ID: Pine.LNX.4.21.0011291904340.796-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane writes:

> I'd lean towards a pg_ping (Peter E., any comment here?)

I could see this in the broad context of the nebulous, often asked for
"admin tools", like querying the postmaster about what the backends are
doing, etc.

> Really we'd need to change the postmaster too, because what we need to
> do is send a query "are you ready to accept connections?" that the
> postmaster will answer without an authentication exchange.

ISTM that the rejection of a client with authentication failure is a
pretty good indicator that you're accepting connections. You only need to
communicate it better.

> Or we could invent a status file in $PGDATA that's separate from the
> pid interlock file, and have pg_ctl look for that.

I was thinking about increasing the link count on the pid file -- at least
until yesterday...

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-29 18:14:37 Re: Database cluster?
Previous Message Chris Jones 2000-11-29 18:06:55 inheritance and foreign keys