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 17:45:08 |
Message-ID: | 23304.1079286308@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:
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Treat | 2004-03-14 17:46:17 | Re: Log rotation |
Previous Message | Tom Lane | 2004-03-14 17:36:26 | Re: try to find out the checkpoint record? |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-03-14 20:42:39 | Re: listening addresses |
Previous Message | Andrew Dunstan | 2004-03-14 13:57:45 | listening addresses |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2004-03-14 20:42:39 | Re: listening addresses |
Previous Message | Michael Meskes | 2004-03-14 15:35:15 | Re: ECPG - Remove need for "AT connection" when using threads |