Re: Issue on calling PQconnectdbParams from C

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrei Petru Mura <mapandrei(at)gmail(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Issue on calling PQconnectdbParams from C
Date: 2013-02-23 11:12:33
Message-ID: 25584.1361617953@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Andrei Petru Mura <mapandrei(at)gmail(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Andrei Petru Mura 2013-02-25 10:42:10 PQconnectdbParams returns exit value 01 (from gdb).
Previous Message Andrei Petru Mura 2013-02-23 09:42:36 Issue on calling PQconnectdbParams from C