Re: Issue on calling PQconnectdbParams from C

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Issue on calling PQconnectdbParams from C
Дата
Msg-id 25584.1361617953@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Issue on calling PQconnectdbParams from C  (Andrei Petru Mura <mapandrei@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andrei Petru Mura
Дата:
Сообщение: Issue on calling PQconnectdbParams from C
Следующее
От: Andrei Petru Mura
Дата:
Сообщение: PQconnectdbParams returns exit value 01 (from gdb).