Re: Fwd: Re: Possible psql bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kurt Roeckx <Q(at)ping(dot)be>
Cc: pgsql-hackers(at)postgresql(dot)org, "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Subject: Re: Fwd: Re: Possible psql bug
Date: 2003-07-23 16:23:38
Message-ID: 13711.1058977418@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kurt Roeckx <Q(at)ping(dot)be> writes:
> On Thu, Jul 10, 2003 at 10:35:04AM +0800, Christopher Kings-Lynne wrote:
>> bash-2.03$ psql test
>> psql: could not connect to server: No such file or directory
>> Is the server running locally and accepting
>> connections on Unix domain socket "`"?

> This is probably getnameinfo() not supporting AF_UNIX, which I
> already was afraid of. And the return value of getnameinfo()
> isn't checked either.

You are right --- I have just checked this on Chris' system, and that's
exactly what happens.

> My suggestion was to make our own getnameinfo_unix() like we have
> a getaddrinfo_unix() for exactly the same reason.

Right, and a getnameinfo2() that wraps that in the same way getaddrinfo2()
does. Can you make this happen? I'm a bit swamped ...

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-07-23 16:53:34 Re: cvs problem
Previous Message Patrick Welche 2003-07-23 16:14:46 Re: cvs problem