Re: Database authentication and configuration

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Database authentication and configuration
Дата
Msg-id Pine.LNX.4.21.0007182041530.1545-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Database authentication and configuration  (Carolyn Lu Wong <carolyn@kss.net.au>)
Список pgsql-sql
Carolyn Lu Wong writes:

> Are there anywhere to configure so that whenever I call 'psql dbname',
> it'll always prompt for user authentication instead of getting into the
> database directly?

psql from 7.0 and later should automatically ask for a password if one is
required.

> In addition, I'd like to default various database settings when I
> connect to the database. Where is the place to do such configuration?

That depends on the nature of the various settings. You can put commands
into ~/.psqlrc that will be executed when psql starts up.


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Median
Следующее
От: andrew
Дата:
Сообщение: Re: using a self referencing table