Re: Issue on calling PQconnectdbParams from C
Tom Lane <[email protected]> Sat, 23 Feb 2013 06:12:33 -0500
| Newsgroups | gmane.comp.db.postgresql.interfaces |
|---|---|
| Message-ID | <[email protected]> |
Andrei Petru Mura <[email protected]> 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 ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces