Re: Avahi support for Postgresql

From: Mathias Hasselmann <mathias(at)openismus(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org, Murray Cumming <murrayc(at)openismus(dot)com>
Subject: Re: Avahi support for Postgresql
Date: 2008-02-25 19:10:33
Message-ID: 1203966633.7227.28.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


Am Montag, den 25.02.2008, 15:45 +0100 schrieb Peter Eisentraut:
> Am Dienstag, 27. November 2007 schrieb Mathias Hasselmann:
> > Postmaster already has code to announce its services via DNS-SD
> > (ZeroConf) by using Apple's Bonjour API. This series of patches
> > implements that capability on top of the Avahi library[1] which
> > is free software, available for a wider variety of platforms.
>
> One thing I found curious: The Bonjour code uses service
> type "_postgresql._tcp." whereas your code uses "_postgresql._tcp" (note the
> dot). Is that an expected difference?

Oh, that difference is really interesting. I didn't even see it.

DNS-SD uses the convention "_<protoname>._<type>" to describe services,
and that's the convention Avahi follows. I don't know why the Bonjour
API uses that trailing dot, but it seems wrong:

"a trailing dot indicates the root domain. so bonjour is clearly
wrong, since there's no ._tcp top-level domain."

-- James Andrewartha on #avahi today

Avahi's maintainer Sjoerd Simons agreed, that the trailing dot seems to
be wrong.

Ciao,
Mathias
--
Mathias Hasselmann <mathias(at)openismus(dot)com>
http://www.openismus.com/ - We can get it done.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mathias Hasselmann 2008-02-25 19:17:00 Re: [PATCHES] Avahi support for Postgresql
Previous Message Tom Lane 2008-02-25 19:04:18 Re: Strange behavior with leap dates and centuries BC

Browse pgsql-patches by date

  From Date Subject
Next Message Mathias Hasselmann 2008-02-25 19:17:00 Re: [PATCHES] Avahi support for Postgresql
Previous Message Peter Eisentraut 2008-02-25 18:12:58 Re: Avahi support for Postgresql