Re: help! default database for user

Поиск
Список
Период
Сортировка
От philip johnson
Тема Re: help! default database for user
Дата
Msg-id NDBBJLHHAKJFNNCGFBHLMEFPEIAA.philip.johnson@atempo.com
обсуждение исходный текст
Ответ на Re: help! default database for user  (Medi Montaseri <medi.montaseri@intransa.com>)
Список pgsql-general
pgsql-general-owner@postgresql.org wrote:
> Objet : Re: [GENERAL] help! default database for user
>
>
> An extension of .bash_profile would be /etc/profile, a system wide
> point of customization with a few line of code that export PGDATABASE
> based on userid or
> groupid or whatever ....
>
> Martijn van Oosterhout wrote:
>
>> On Thu, Jan 02, 2003 at 07:27:21PM +0100, philip johnson wrote:
>>
>>
>>> is it possible to assign a default database for a user
>>> example: database B for user A
>>>
>>> so when I will use psql it will not say thet database A does not
>>> exists
>>>
>>>
>>
>> The easiest way I can think of is to set the PGDATABASE environment
>> variable in the .bash_profile of the user. then psql will use that
>> instead of the username.
>>
>> HTH,
>>
>>
>
>
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 4: Don't 'kill -9' the
> postmaster

thanks to all
It works great

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

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Postgres (psql ?) rounds all odd second values to even seconds fo r timestamp(0) data type
Следующее
От: dev@archonet.com
Дата:
Сообщение: Re: Connection / Access / Strange Problems