Re: Adding Rendezvous support to postmaster - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Adding Rendezvous support to postmaster
Date
Msg-id 200306111443.h5BEhBP21481@candle.pha.pa.us
Whole thread Raw
In response to Re: Adding Rendezvous support to postmaster  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Adding Rendezvous support to postmaster
List pgsql-patches
Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > > I also _didn't_ add the Rendezvous GUC variable, so we default to the
> > > host name.  If there is need, we can add it later.
> >
> > How do you figure there is not need for it?  What about running more
> > than one postmaster at a time?
>
> No one brought up that idea, and Chris agreed we could try it without
> it.  Chris, is that an issue?  I see the port number in the Rendezvous
> function call:
>
>                 if (service_name != NULL)
>                 {
>                         DNSServiceRegistrationCreate(NULL,  /* default to hostname */
>                                                      "_postgresql._tcp.",
>                                                      "",
>                                                      htonl(PostPortNumber),
>                                                      "",
>                                                      (DNSServiceRegistrationReply)reg_reply,
>                                                      NULL);

Two more issues --- first, I changed 'pgsql' to 'postgresql' as the
service name, to match our registered TCP service name.  Second, if we
do add a GUC variable, it has to conditionally be included in
postgresql.conf.sample if Rendezvous is enabled.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: perform.sgml update
Next
From: Bruce Momjian
Date:
Subject: Re: FK on update no action patch