using password protection in pgtcl

Поиск
Список
Период
Сортировка
Искать

using password protection in pgtcl

От:
Vegeta <vegeta@cuaima.ica.luz.ve>
Дата:
I want to use the pg_connect function of pgtcl on a database that requires
password authentication.  Is there an option of pg_connect that allows
passing a username and password to make the connection?

Thanks,
Vegeta 

RE: [GENERAL] using password protection in pgtcl

От:
postgres@taifun.interface.business.de
Дата:
Hi Vegeta,

> I want to use the pg_connect function of pgtcl on a database that requires
> password authentication.  Is there an option of pg_connect that allows
> passing a username and password to make the connection?

Try: pg_connect -conninfo "user=$user password=$password"

Gerald
FAQ