Jim Wallace wrote:
>
> FWIW, in my code, the db parameters are passed in from a config file so
> I specify up to port every time.
I do like the automatic determination of connection parameters from just
the server_addr value in the new code, but I don't see why you can't
have it both ways:
Connection(blah, blah, server_addr = 0, port = 0);
If port is zero and there is a colon in server_addr followed by
something parseable as a port or service name, it can use that. If port
is given an explicit value, let that override anything it finds in the
server address parameter. If there is no colon and no explicit port is
given, it takes the default.