Re: [GENERAL] libq++ and security help

From: Bruce Tong <zztong(at)laxmi(dot)ev(dot)net>
To: Peter Mount <pgsqlgen(at)retep(dot)org(dot)uk>
Cc: Monica Rogati <mrogati(at)unm(dot)edu>, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] libq++ and security help
Date: 1998-06-16 11:59:31
Message-ID: Pine.LNX.3.95.980616075826.6837N-100000@laxmi.ev.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I'm not sure about libq++, but for libpq, you can do this by using
> PQconnectdb(). The easiest way, is to look at the source to psql, which
> uses libpq itself.
>
> PGconn *db = PQconnectdb("host=myhost user=myuser password=mypassword port=myport");

Whoa, neat. I guess I'm going to have to start looking at the source. That
function isn't in the documentation for LIBPQ. Thanks for the pointer.

Bruce Tong
Systems Programmer
Electronic Vision / FITNE

mailto: zztong(at)laxmi(dot)ev(dot)net
http://www.ev.net/fitne

In response to

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 1998-06-16 16:44:33 By Popular Demand...
Previous Message Jose' Soares Da Silva 1998-06-16 11:18:16 Re: [HACKERS] pg_dump error