Re: listening addresses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: listening addresses
Date: 2004-03-14 21:16:05
Message-ID: 25069.1079298965@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Tom Lane wrote:
>> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>>> How about this: we replace tcpip_socket and virtual_host with
>>> a new var called listen_addresses, which can have values of "local",
>>> "all", or a list of addresses? The default would be "local" and -i would
>>> correspond to "all".
>>
>> No objection here. You could also allow "none" (or maybe that falls out
>> of the list case by writing an empty list), with the understanding that
>> "none" is a useless setting on Windows or any other platform that
>> doesn't support Unix sockets.

> I had thought about "none". I have no strong feelings either way,
> althought you are right that it would be redundant.

Also, "local" would be better spelled "localhost", which would make it
not a special case but just the same as writing a list containing just
that one name. That leaves only "all" as a special case. Perhaps you
could write "all" as "*", and thereby not have any special keywords
needed in the variable: it's either "*" or a list of addresses or names.
The advantage of this is you need not worry about collisions of DNS
names with keywords.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nicolai Tufar 2004-03-14 21:25:57 Re: PITR: Request for assistance with alpha test plan
Previous Message Andrew Dunstan 2004-03-14 21:07:04 Re: Log rotation

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-15 10:43:30 default psql to localhost on platforms without unix domain sockets
Previous Message Andrew Dunstan 2004-03-14 20:42:39 Re: listening addresses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-03-14 22:02:03 Re: libpq v2 protocol error: COPY FROM STDIN, PQputCopyEnd()
Previous Message Andrew Dunstan 2004-03-14 20:42:39 Re: listening addresses