Re: pg_service.conf

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: pg_service.conf
Дата
Msg-id 20060219145345.GC1323@svana.org
обсуждение исходный текст
Ответ на pg_service.conf  ("Mark Woodward" <pgsql@mohawksoft.com>)
Ответы Re: pg_service.conf  ("Mark Woodward" <pgsql@mohawksoft.com>)
Список pgsql-hackers
On Sun, Feb 19, 2006 at 10:00:01AM -0500, Mark Woodward wrote:
> > It turns out what you like actually exists, lookup the "service"
> > parameter in the connectdb string. It will read the values for the
> > server, port, etc from a pg_service.conf file.
> >
> > There is an example in the tree but it looks something like the following:
> >
> > [servicename]
> > dbname=blah
> > user=blah
> > pass=blah
> >
> > So all you need to specify is "service=servicename" and it will grab
> > the parameters. This allows you to change the connection without
> > changeing the code.
> >
>
> This is a great feature!!
>
> It doesn't seem to be documented in the administrators guide. Its
> mentioned in the libpq section, and only a reference to
> pg_service.conf.sample

Indeed, I only just found out about it yesterday. It's a very little
known feature that needs some advertisement. Right now we need to work
up some documentation patches so people come across it easier.

Where do you think it should be mentioned?
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: pg_service.conf
Следующее
От: Douglas McNaught
Дата:
Сообщение: Re: pg_service.conf