X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8586F5282C for ; Thu, 19 May 2005 10:52:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48761-10 for ; Thu, 19 May 2005 13:52:03 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by svr1.postgresql.org (Postfix) with ESMTP id 3F83352823 for ; Thu, 19 May 2005 10:52:02 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so758861wra for ; Thu, 19 May 2005 06:52:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Qn8wDKLgaKMDe5QQ3ve9OL8E0pYnqEiGnkNVcPQtlt8qRsrWopnmg97SwnDMhwy/gJ/zPYed+qn/H6T2PwPWhvMK3EuCFw85EWvwNxZ829bW2mHadOfN9oQjw3IGTI6rka22xkg71VFvENso0wIegd449nFs8jSIxeUfGTtnk4I= Received: by 10.54.61.12 with SMTP id j12mr416759wra; Thu, 19 May 2005 06:52:13 -0700 (PDT) Received: by 10.54.3.70 with HTTP; Thu, 19 May 2005 06:52:13 -0700 (PDT) Message-ID: <2b5c484b05051906526f8bb577@mail.gmail.com> Date: Thu, 19 May 2005 14:52:13 +0100 From: Gustavo Lopes Reply-To: Gustavo Lopes To: pgsql-interfaces@postgresql.org Subject: libpq on windows Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.398 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200505/42 X-Sequence-Number: 5545 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