RE: [GENERAL] using password protection in pgtcl

From: postgres(at)taifun(dot)interface(dot)business(dot)de
To: Vegeta <vegeta(at)cuaima(dot)ica(dot)luz(dot)ve>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: RE: [GENERAL] using password protection in pgtcl
Date: 2000-01-03 08:40:19
Message-ID: XFMail.000103094019.postgres@taifun.interface.business.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tusar 2000-01-03 11:28:22 Re: [INTERFACES] Announce: PostgreSQL-6.5.3 binaries available for Windows NT
Previous Message Steve Howe 2000-01-03 04:11:54 Re: [GENERAL] Web mail list search engine broken?