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 C0C3352875 for ; Thu, 19 May 2005 11:58:43 -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 70463-04 for ; Thu, 19 May 2005 14:58:39 +0000 (GMT) Received: from a2s1.a2webhosting.com (host-180.a2webhosting.com [69.39.89.180]) by svr1.postgresql.org (Postfix) with ESMTP id 098CC52846 for ; Thu, 19 May 2005 11:58:38 -0300 (ADT) Received: from user-1120qbs.dsl.mindspring.com ([66.32.105.124] helo=[192.168.1.10]) by a2s1.a2webhosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.50) id 1DYmU4-0000Je-U7; Thu, 19 May 2005 10:58:49 -0400 In-Reply-To: <2b5c484b05051906526f8bb577@mail.gmail.com> References: <2b5c484b05051906526f8bb577@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <192bc8571d77abfaa3f193ebfb3c10e5@pgedit.com> Content-Transfer-Encoding: 7bit Cc: pgsql-interfaces@postgresql.org From: John DeSoi Subject: Re: libpq on windows Date: Thu, 19 May 2005 10:58:47 -0400 To: Gustavo Lopes X-Mailer: Apple Mail (2.619.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s1.a2webhosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/43 X-Sequence-Number: 5546 On May 19, 2005, at 9:52 AM, Gustavo Lopes wrote: > 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. Try comparing what you are doing in this case to the psql source. It uses libpq and I run tests regularly that try connecting to an invalid server. I have not seen any problems. John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL