Re: Windows default to localhost is in the wrong place

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Windows default to localhost is in the wrong place
Date: 2004-12-28 19:53:39
Message-ID: 41D1B9C3.4080404@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

>Isn't this fix in the wrong place?
>
>2004-03-23 22:10 momjian
>
> * src/bin/psql/startup.c: >>Also, what is the default connection
> mode of psql? It should probably be
> >>equivalent to "-h localhost", shouldn't it?
> >>
> >>
> >
> >Now that is something I had not thought of. Seems we can assume a
> Win32
> >psql can never use unix domain sockets, so defaulting that to
> localhost
> >is a good solution too.
>
> Andrew Dunstan
>
>
>ISTM that libpq itself ought to default to localhost, rather than
>failing, on machines that don't have Unix sockets.
>
>
>
>

So then it would be picked up by pg_dump, createdb etc., plus third
party clients? Not a bad idea. Are you going to fix it for 8.0?

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-12-28 19:57:09 Re: Windows default to localhost is in the wrong place
Previous Message Tom Lane 2004-12-28 19:27:46 Windows default to localhost is in the wrong place