Re: listening addresses

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: listening addresses
Дата
Msg-id 25069.1079298965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: listening addresses  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> Andrew Dunstan <andrew@dunslane.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Log rotation
Следующее
От: Manfred Spraul
Дата:
Сообщение: Re: Log rotation