Re: Docs for service file - Mailing list pgsql-patches

From Joe Conway
Subject Re: Docs for service file
Date
Msg-id 3E1B251E.1040502@joeconway.com
Whole thread Raw
In response to Re: Docs for service file  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Docs for service file
List pgsql-patches
Bruce Momjian wrote:
> Oh, so there is one central server with connection information.
> Interesting.  Might be easier to just NFS mount the pg_service.conf file
> on all the machines.... at least easier for us.  ;-)
>

The way this is used on Oracle (at least in my experience) is to distribute a
"tnsnames.ora" file to all of your client machines. Our Oracle dba maintains a
master copy in cvs, and distributes changes whenever he adds or moves an
Oracle instance (equiv to a single PostgreSQL database).

It's a pain to keep the file syncronized, but it is nice to be able to able to
type "prod" or "proto" or whatever depending on the database you want to
connect to, without having to remember the actual server name and port.

I have never actually seen the Oracle Names Listener (i.e the central service
info server) functionality used (even though we have it). Not sure why.

Joe


pgsql-patches by date:

Previous
From: Justin Clift
Date:
Subject: Re: Docs for service file
Next
From: Bruce Momjian
Date:
Subject: Re: Docs for service file