RE: [GENERAL] using password protection in pgtcl - Mailing list pgsql-general

From postgres@taifun.interface.business.de
Subject RE: [GENERAL] using password protection in pgtcl
Date
Msg-id XFMail.000103094019.postgres@taifun.interface.business.de
Whole thread Raw
In response to using password protection in pgtcl  (Vegeta <vegeta@cuaima.ica.luz.ve>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Marten Feldtmann
Date:
Subject: Re: [GENERAL] Future of PostgreSQL
Next
From: "Culberson, Philip"
Date:
Subject: RE: [GENERAL] How 2 shutoff verbose logging...