Konstantin Izmailov <pgfizm(at)gmail(dot)com> writes:
> Oops, I forgot to mention that we slightly modified libpq to request
> resulting fields formats (since Postgres protocol v3 supports this).
Um. I'm not that excited about supporting bugs in modified variants of
PG. If you can present a test case that fails in stock community source
code, I'll be happy to take a look.
regards, tom lane