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