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