X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 07FFFD1B50F for ; Sat, 13 Sep 2003 18:10:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 65263-01 for ; Sat, 13 Sep 2003 15:09:57 -0300 (ADT) Received: from mail.porta.net (mail.porta.net [216.250.209.14]) by svr1.postgresql.org (Postfix) with ESMTP id D91A6D1B4E5 for ; Sat, 13 Sep 2003 15:09:50 -0300 (ADT) Received: from customer2089.porta.net (customer2089.porta.net [216.250.208.9] (may be forged)) by mail.porta.net (8.11.7+Sun/8.11.6) with ESMTP id h8DHxtA05964 for ; Sat, 13 Sep 2003 12:59:57 -0500 (GMT+5) From: Christian Valverde Reply-To: valval@porta.net Organization: CODACEL To: pgsql-interfaces@postgresql.org Subject: PQconnectdb question Date: Sat, 13 Sep 2003 13:12:16 -0500 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309131312.16427.valval@porta.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/24 X-Sequence-Number: 4442 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?