libpq on windows

Поиск
Список
Период
Сортировка
От Gustavo Lopes
Тема libpq on windows
Дата
Msg-id 2b5c484b05051906526f8bb577@mail.gmail.com
обсуждение исходный текст
Ответы Re: libpq on windows
Re: libpq on windows
Список pgsql-interfaces
Hi
I'm having trouble using libpq.dll (implicit linking with C programs).
I'm using libpq.dll v8.0.3.5131 (timestamp Wed May 11 11:12:58 2005)
and PostgreSQL 8.0.3 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC)
3.4.2 (mingw-special) v8.0.3.5131. I used both Borland C++ 5.5.1 and
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168.
The problem seems to occurr only when the server sends a hint or the
dll generates one. This can happen when the connection to the server
cannot be established because the server is not running, a nonexistant
postgres function exist is called, when one attempts to drop an index
upon which a constraint depends, etc. (the program doesn't go beyond
PQconnectdb, PQexec or PQexecparam). Since my debugging skills are
very poor I cannot give any accurate description on what is causing
the exception.
The problem can be very easily reproduced by creating a C program
which calls PQconnectdb with a host parameter that points to a machine
that is not running postgres.
Running the same program under linux (although I used older versions
of the interface and the server) does not cause any problems.

Gustavo Lopes


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Sean Davis
Дата:
Сообщение: Re: perl and large objects
Следующее
От: John DeSoi
Дата:
Сообщение: Re: libpq on windows