Yurii Rashkovskii <yrashk@gmail.com> writes: > I would like to suggest a patch against master (although it may be worth > backporting it) that makes it possible to listen on any unused port.
I think this is a bad idea, mainly because this:
> Instead, with this patch, one can specify `port` as `0` (the "wildcard" > port) and retrieve the assigned port from postmaster.pid
is a horrid way to find out what was picked, and yet there could be no other.