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

From Bruce Momjian
Subject Re: Docs for service file
Date
Msg-id 200301071928.h07JSDq25250@candle.pha.pa.us
Whole thread Raw
In response to Re: Docs for service file  (Joe Conway <mail@joeconway.com>)
Responses Re: Docs for service file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
Joe Conway wrote:
> 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.

You need to use NFS readonly mounts.

So it seems you use something almost identical to our client-side
pg_service.conf file in Oracle.

--
  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: Joe Conway
Date:
Subject: Re: Docs for service file
Next
From: Tom Lane
Date:
Subject: Re: Docs for service file