Re: [PATCHES] Avahi support for Postgresql - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PATCHES] Avahi support for Postgresql
Date
Msg-id 20080225173255.GH15597@alvh.no-ip.org
Whole thread Raw
In response to Re: [PATCHES] Avahi support for Postgresql  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [PATCHES] Avahi support for Postgresql
List pgsql-hackers
Peter Eisentraut wrote:
> Am Montag, 25. Februar 2008 schrieb Alvaro Herrera:
> > Hmm, a quick look at the third patch reveals that it is using the
> > "threaded" Avahi client.  That's a showstopper.
> 
> Could you elaborate why that is?

Because it creates a new thread under the Postmaster to handle Avahi
events, if I'm reading the Avahi docs right.  This is verboten.

We have an event loop in the postmaster -- see ServerLoop.  Is there a
reason the Avahi events could not be hooked in there?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Questions about indexes with text_pattern_ops
Next
From: "Roberts, Jon"
Date:
Subject: pgAgent job throttling