postmaster listening on specified addresses - Mailing list pgsql-general

From Administrator
Subject postmaster listening on specified addresses
Date
Msg-id 41E82B68.5080100@photoresearchers.com
Whole thread Raw
Responses Re: postmaster listening on specified addresses  (Doug McNaught <doug@mcnaught.org>)
Re: postmaster listening on specified addresses  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Hello,

I was wondering if there's a correct method for running postmaster with the
option of listening on a select group of addresses.  Does postmaster accept
multiple "-h hostname" options on the command-line, or alternatively a
comma-separated list of hostnames or addresses?  What if you have a server with
multiple network interfaces and addresses assigned to each, and you only want
postmaster to listen on a specific subset of those addresses in addition to
localhost?  Does anyone know if there a supported method for doing this?

The documentation for the "-h" option only states: "Specifies the TCP/IP host
name or address on which the postmaster is to listen for connections from client
applications. Defaults to listening on all configured addresses (including
localhost)."  Clearly the server is capable of listening on mutliple addresses
since the default is all of them, but the "-h" option is described only for use
with a single address.

Thanks,

Brian Carp

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: OID Usage
Next
From: Tony Caduto
Date:
Subject: is there anyway to get the backends IP address from the PID?