Re: Default libpq service
От | Jeroen T. Vermeulen |
---|---|
Тема | Re: Default libpq service |
Дата | |
Msg-id | 20040629213105.GW56428@xs4all.nl обсуждение исходный текст |
Ответ на | Default libpq service (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-hackers |
On Tue, Jun 29, 2004 at 09:46:34PM +0200, Peter Eisentraut wrote: > A while ago it was speculated that it might be nice to have a default > service in libpq's pg_service.conf file that would supply missing > connection parameters if none are specified elsewhere, so users could, > say, set the default server host in a configuration file instead of > environment variables. > > The precendence would be like this: explicit specification, service (if > explicitly specified), environment, (new: ) default service, > compiled-in default (e.g., for port). (Or maybe the default service > before the environment?) > > Comments? Better ideas? Only problem that springs to mind is that you probably wouldn't want a default password in a world-readable /etc/ file, but you can't stop a determined fool anyway. I know it would make my life a little easier, so yeah, go for it. This was proposed for libpqxx a long time ago, but I felt it belonged more at the libpq level. Jeroen PS - Nette Witmung, danke :)
В списке pgsql-hackers по дате отправления: