Re: Docs for service file

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Docs for service file
Дата
Msg-id 200301071928.h07JSDq25250@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Docs for service file  (Joe Conway <mail@joeconway.com>)
Ответы Re: Docs for service file  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Docs for service file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Docs for service file