pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Issue on calling PQconnectdbParams from C
2+ messages / 2 participants
[nested] [flat]

* Issue on calling PQconnectdbParams from C
@ 2013-02-23 09:42  Andrei Petru Mura <mapandrei@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Andrei Petru Mura @ 2013-02-23 09:42 UTC (permalink / raw)
  To: pgsql-interfaces

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?

Note: I'm not sure if I posted in the right mailing list, so please guide
me if it is the case. Thanks for patience.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Issue on calling PQconnectdbParams from C
@ 2013-02-23 11:12  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andrei Petru Mura <mapandrei@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2013-02-23 11:12 UTC (permalink / raw)
  To: Andrei Petru Mura <mapandrei@gmail.com>; +Cc: 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


-- 
Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2013-02-23 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-02-23 09:42 Issue on calling PQconnectdbParams from C Andrei Petru Mura <mapandrei@gmail.com>
2013-02-23 11:12 ` Tom Lane <tgl@sss.pgh.pa.us>

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