Re: Detecting postgres servers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Murray Cumming <murrayc(at)murrayc(dot)com>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Detecting postgres servers
Date: 2006-01-10 21:00:19
Message-ID: 3972.1136926819@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Murray Cumming <murrayc(at)murrayc(dot)com> writes:
> On Sat, 2005-11-19 at 18:34 +0100, Murray Cumming wrote:
>> Is there any way, without a username and password, to
>> 1. Detect whether a Postgres server is running on a certain host on a
>> certain port.
>> 2. Detect whether a Postgres server is running on a certain host.
>> 3. Detect whether a Postgres server is running somewhere on the local
>> network, via some bonjour/rendezvous/avahi/howl-type thing?

We have bonjour code, but it's written to Apple's API and hence only
works on Darwin. There was some talk recently of revising that code
to be more portable ... dunno if anyone is actually working on it,
but check the archives.

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ludek Finstrle 2006-01-11 10:50:20 Re: libpq and auth type
Previous Message Jaime Casanova 2006-01-10 20:49:47 Re: Detecting postgres servers