Re: setting login database

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: setting login database
Дата
Msg-id 20070607142347.GA99376@winnie.fuhr.org
обсуждение исходный текст
Ответ на setting login database  (Samatha Kottha <samatha.kottha@tu-dresden.de>)
Ответы Re: setting login database  (Samatha Kottha <samatha.kottha@tu-dresden.de>)
Список pgsql-general
On Thu, Jun 07, 2007 at 03:38:15PM +0200, Samatha Kottha wrote:
> We are trying to access a postgres database using a data integration
> tool. This data integration tool have options to specify the hostname,
> port, userid, and passwd of a database. But there is no way to supply
> the database name.

What data integration tool is it?  Are you sure it doesn't have an
option to specify the database?

> So, I am thinking to set the database name to each user (default
> login database) so that they do not need to supply that info when
> they access data using data integration tool.

In libpq applications a role's default database has the same name
as the role; you can override that with the PGDATABASE environment
variable.

http://www.postgresql.org/docs/8.2/interactive/libpq-envars.html

See also PGSERVICE, PGSYSCONFDIR, and the connection service file.

http://www.postgresql.org/docs/8.2/interactive/libpq-pgservice.html

--
Michael Fuhr

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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: NULLS and User Input WAS Re: multimaster
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [pgsql-advocacy] Looking for Graphical people for PostgreSQL tradeshow signage