Erko>2) There was a similar problem discussed in 2012, which ended with an
explanation:
https://www.postgresql.org/message-id/alpine.BSO.2.00.1211081338240.29600%40leary.csoft.net
I though "text-binary" flip might cause issue here. bigserial is an alias
for int8, and int8 binary representation is 8 bytes always.
Erko, if you file a pull request https://github.com/pgjdbc/pgjdbc with a
test case, then it would get executed and we'll know if the issue is still
there and/or which DB versions are affected.
Vladimir