Re: Listening on more than one port? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Listening on more than one port?
Date
Msg-id 20060830200923.GQ13929@svana.org
Whole thread Raw
In response to Listening on more than one port?  ("Michael Nolan" <htfoot@gmail.com>)
Responses Re: Listening on more than one port?  ("Michael Nolan" <htfoot@gmail.com>)
List pgsql-general
On Wed, Aug 30, 2006 at 02:42:58PM -0500, Michael Nolan wrote:
> I need to be able to have postmaster (8.1.2) listen on more than one port,
> eg, 5432 and some other port, such as 5431.

Why?

> If I set up a TCP port redirector like rinetd, to forward packets from port
> 5431 to port 5432 it appears to be forwarding packets to the right port with
> a simple telnet session (based on errors in the log file) but psql still
> says there is no postmaster listening on port 5431.

Are you sure psql was using TCP? If you're connecting to the localhost
maybe it used UNIX domain sockets. It still needs a matching port
number there too...

> Is there a simple way to do this that I'm overlooking?

Address translation in the firewall?

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: Re: Dblink and connections to MySQL?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Postgresql mentioned on Newsforge MySQL article