Shachar Shemesh <psql(at)shemesh(dot)biz> writes:
> ... This is a problem, as merely preparing a command is
> not enough to get the returned rows information.
Sure it is, if you are using the V3 protocol (new in 7.4).
See the Describe message types.
regards, tom lane