Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Дата
Msg-id 20170920154342.c4wkqzeih25xihud@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection  (Garry Chen <gc92@cornell.edu>)
Ответы Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection  (Garry Chen <gc92@cornell.edu>)
Список pgsql-novice
Garry Chen wrote:
> 
> Hi Alb,
>     Is there a way to give a username and passwd at the connection time? Another word, not to set the username in
gp_server.conffile.  Because psql just used my OS login id as username When I remove the username from pg_server.conf
file.

Hi Garr,

You can use the PGUSER environment variable to set the username, and a
.pgpass file (or another file pointed to by the PGPASSFILE environment
variable) to give a password.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

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

Предыдущее
От: Garry Chen
Дата:
Сообщение: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection
Следующее
От: Garry Chen
Дата:
Сообщение: Re: [NOVICE] Re: using LDAP for connection information lookup to doremote database connection