agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: Gustavo Lopes <contratempo@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpq on windows
Date: Thu, 19 May 2005 10:58:47 -0400
Message-ID: <192bc8571d77abfaa3f193ebfb3c10e5@pgedit.com> (raw)
In-Reply-To: <2b5c484b05051906526f8bb577@mail.gmail.com>
References: <2b5c484b05051906526f8bb577@mail.gmail.com>


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




view thread (26+ messages)  latest in thread

Message-ID: <192bc8571d77abfaa3f193ebfb3c10e5@pgedit.com>
Permalink:  ../192bc8571d77abfaa3f193ebfb3c10e5@pgedit.com/
Also on:    postgresql.org/message-id/192bc8571d77abfaa3f193ebfb3c10e5@pgedit.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: desoi@pgedit.com, contratempo@gmail.com
  Subject: Re: libpq on windows
  In-Reply-To: <192bc8571d77abfaa3f193ebfb3c10e5@pgedit.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