Re: [HACKERS] DefaultHost

From: Edmund Mergl <E(dot)Mergl(at)bawue(dot)de>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] DefaultHost
Date: 1998-01-10 14:18:18
Message-ID: 34B7832A.F5495AFD@bawue.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Goran Thyni wrote:
>
> in the current snapshot there is no default for PGHOST
> in src/interfaces/libpq/fe-connect.c.
> In 6.2 this was 'localhost', which is a reasonable default.
>
> If there is no real reason for not having a default for
> the host-option, please provide 'localhost' as default.
>
> No host means connect with unix domain socket.
> If host (PGHOST) is set connection is made with tcp socket.
>
> This is related to the problem I mentioned before with
> DBD::Pg and libpq.
>
> regards,
> --
> ---------------------------------------------
> Göran Thyni, sysadm, JMS Bildbasen, Kiruna

ok, but there is still no reasonable default. The only way
I got things working is starting the postmaster with -i
and setting the environment-variable PGHOST to 'localhost'.

It should be possible to connect to the backend on the
localhost without having to define the host in the environment
or as argument in PQconnectdb().

Edmund
--
Edmund Mergl mailto:E(dot)Mergl(at)bawue(dot)de
Im Haldenhau 9 http://www.bawue.de/~mergl
D 70565 Stuttgart fon: +49 711 747503
Germany gsm: +49 171 2645325

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 1998-01-10 14:19:33 Can't run current PostgreSQL
Previous Message Goran Thyni 1998-01-10 12:59:59 Re: [HACKERS] DefaultHost