Fabien COELHO <coe...@cri.ensmp.fr> writes: > Note that if no connections are available, then you do not get the > version, which may be a little bit strange. Attached v3 prints out the > local version in that case. Not sure whether it is worth the effort.
I'm inclined to think that the purpose of that output is mostly to report the server version, so not printing it if we fail to connect isn't very surprising. Certainly that's how psql has acted for decades. regards, tom lane