Re: listening addresses

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: listening addresses
Дата
Msg-id 23304.1079286308@sss.pgh.pa.us
обсуждение исходный текст
Ответ на listening addresses  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: listening addresses  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> This slipped off my radar. I have just spent a little while thinking 
> about it. 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.

> Yes, I know it's not backwards compatible, but we just went through that 
> argument with log_line_prefix ;-)

I think it's the same argument: neither of these variables are likely to
be touched by application code, only by config file entries; so we need
not feel compelled to provide backwards-compatibility options.

> Actually, if we wanted to go the whole hog with virtual hosting we'd 
> allow per-address port specification, like apache does, but maybe that's 
> something to be left for another day ;-)

Yeah, I don't think that's worth the trouble.  It would open up a bunch
of definitional issues (like which port number do we use as the seed for
the shared memory key), without actually buying much useful functionality.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: try to find out the checkpoint record?
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Log rotation