by anarazel · 6y ago · 0 comments
We return the types of the result set separately even when not preparing. The harder part is doing it without adding roundtrips.
I've argued before that we should allow the client to specify which types it wants as binary, unless explicitly specified. IMO that's the only way to solve this incrementally from where we currently are.
> Do pipelined queries help at all here?
We really need to get the libpq support for pipelining merged :(
I don't understand the idea, can you clarify?
That way a driver can add handling for ~10 builtin types (bytea, int[48], float[48], timestamp, ...) that matter from a size/efficiency POV, without needing to handle all the other types. That'd provide a large large fraction of the potential benefit of handling binary for all types.
The reason for the server side list is that otherwise I don't see how you could do it without an added roundtrip.