Re: Issue on calling PQconnectdbParams from C - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Issue on calling PQconnectdbParams from C
Date
Msg-id 25584.1361617953@sss.pgh.pa.us
Whole thread Raw
In response to Issue on calling PQconnectdbParams from C  (Andrei Petru Mura <mapandrei@gmail.com>)
List pgsql-interfaces
Andrei Petru Mura <mapandrei@gmail.com> writes:
> I'm trying to create a database connection with libpq from C. If I create
> the same connection with PQconnectdb, everything works fine, but if I
> create it with PQconnectdbParams function, I get a segmentation fault
> message, without any other message. Can anybody help me in that issue?

Presumably you constructed the arguments for PQconnectdbParams
incorrectly (ie, with a incorrect pointer somewhere) ... but without
seeing your code it's hard to be any more specific than that.
        regards, tom lane



pgsql-interfaces by date:

Previous
From: Andrei Petru Mura
Date:
Subject: Issue on calling PQconnectdbParams from C
Next
From: Andrei Petru Mura
Date:
Subject: PQconnectdbParams returns exit value 01 (from gdb).