From: Christian Valverde <valval@porta.net>
To: pgsql-interfaces@postgresql.org
Subject: PQconnectdb question
Date: Sat, 13 Sep 2003 13:12:16 -0500
Message-ID: <200309131312.16427.valval@porta.net> (raw)
could somebody show me a little example on this function
i have this parameters
PQconn connection;
char *user;
char *passw;
char *db;
char *server;
char *port;
user="chrisvv";
passw="mypass";
db="sales";
server="192.168.1.1";
port="5432";
is it right to do as follows
connection=PQconnectdb(user,passw,db,server,port);
.... how is the correct form of making a conection with user and passwd
parameters?
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: valval@porta.net
Subject: Re: PQconnectdb question
In-Reply-To: <200309131312.16427.valval@porta.net>
* 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