Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> I guess there is sort of a point there. So I'm leaning towards adding a
> "startup complete" flag somewhere in PGconn and simply fix up
> closePGconn().
I think you can use the conn->status field; you shouldn't need a new
flag, just test whether status is CONNECTION_OK or not.
> Seriously, in the worst case we'll get EINVAL.
So you'll just ignore an error? Okay, that'll probably work.
regards, tom lane