pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sandro Dentella <sandro.dentella@tin.it>
To: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: libpgtcl and passwords
Date: Mon, 30 Apr 2001 10:48:58 +0200
Message-ID: <20010430104858.A6311@bluff.ermit.it> (raw)
In-Reply-To: <200104280302.f3S32rw03367@candle.pha.pa.us>
References: <200104280302.f3S32rw03367@candle.pha.pa.us>

On Fri, Apr 27, 2001 at 11:02:53PM -0400, Bruce Momjian wrote:
> 
> Is there a way to user username/passwords with libpgtcl?  I don't see
> any options in pg_connect.  Is it pg_connect -conninfo conninfoString? 
> Does conninfoString match libpq's PQconnectdb?

set p [pg_connect -conninfo "user=postgres host=localhost dbname=erm \
             password=xxx"]

is this what you are asking for?

ciao
sandro
*:-)

-- 
Sandro Dentella  *:-)
e-mail: sandro@ermit.it sandro.dentella@mi.infn.it 



view thread (4+ messages)  latest in thread

Message-ID: <20010430104858.A6311@bluff.ermit.it>
Permalink:  ../20010430104858.A6311@bluff.ermit.it/
Also on:    postgresql.org/message-id/20010430104858.A6311@bluff.ermit.it

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: sandro.dentella@tin.it
  Subject: Re: libpgtcl and passwords
  In-Reply-To: <20010430104858.A6311@bluff.ermit.it>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox