On Thu, 24 Sep 2009, Tom Lane wrote:
> Sam Mason <sam@samason.me.uk> writes:
>> + if (portnum < 1 || portnum > 65535)
>
> BTW, it strikes me that we could tighten this even more by rejecting
> target ports below 1024.
Restricting the target port seems like a bad idea. What about a firewall
(or ssh tunnel) that did port forwarding. What PG binds to and what a
client connects to may not be the same thing.
Kris Jurka