agora inbox for pgsql-interfaces@postgresql.org
help / color / mirror / Atom feedFrom: Gustavo Lopes <contratempo@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: libpq on windows
Date: Thu, 19 May 2005 14:52:13 +0100
Message-ID: <2b5c484b05051906526f8bb577@mail.gmail.com> (raw)
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
view thread (26+ messages) latest in thread
Message-ID: <2b5c484b05051906526f8bb577@mail.gmail.com>
Permalink: ../2b5c484b05051906526f8bb577@mail.gmail.com/
Also on: postgresql.org/message-id/2b5c484b05051906526f8bb577@mail.gmail.com
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: contratempo@gmail.com
Subject: Re: libpq on windows
In-Reply-To: <2b5c484b05051906526f8bb577@mail.gmail.com>
* 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