Thread: using password protection in pgtcl

using password protection in pgtcl

From
Vegeta
Date:
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

From
postgres@taifun.interface.business.de
Date:
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