agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrei Petru Mura <mapandrei@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Issue on calling PQconnectdbParams from C
Date: Sat, 23 Feb 2013 06:12:33 -0500
Message-ID: <25584.1361617953@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK18DJV7J3EbiN8in7kPF1fWNJgNpFv4TjO0SALAc+PYdEC9=w@mail.gmail.com>
References: <CAK18DJV7J3EbiN8in7kPF1fWNJgNpFv4TjO0SALAc+PYdEC9=w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces
view thread (2+ messages)
Message-ID: <25584.1361617953@sss.pgh.pa.us>
Permalink: ../25584.1361617953@sss.pgh.pa.us/
Also on: postgresql.org/message-id/25584.1361617953@sss.pgh.pa.us
reply
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: tgl@sss.pgh.pa.us, mapandrei@gmail.com
Subject: Re: Issue on calling PQconnectdbParams from C
In-Reply-To: <25584.1361617953@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox