Re: libpq PGHOST

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq PGHOST
Date: 2000-10-02 14:48:15
Message-ID: 4587.970498095@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> The current behaviour of libpq is to use Unix sockets whenever the host
> parameter (PGHOST or setdbLogin argument) is NULL/unset.
> Could we extend that to also use Unix sockets if the parameter is set but
> empty?

Seems reasonable, since the current behavior in that case is useless:

$ PGHOST='' psql
psql: connectDBStart() -- unknown hostname:
$

Backwards compatibility with that doesn't seem necessary ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-10-02 15:01:12 Re: failed assertion error on PG-7.0.2
Previous Message Tom Lane 2000-10-02 14:45:03 Re: Note about include files