Re: Listening on more than one port?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Michael Nolan <htfoot(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Listening on more than one port?
Date: 2006-08-30 20:09:23
Message-ID: 20060830200923.GQ13929@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-08-30 20:11:37 Re: Postgresql mentioned on Newsforge MySQL article
Previous Message Joe Conway 2006-08-30 19:58:08 Re: Dblink and connections to MySQL?