Open zodo opened 6 years ago
Hi, thank you for reporting the bug!
The length of the field is taken from the pg_attribute.atttypmod
.
And apparently for varchar
datatype it represents the actual length of the field which is 4 bytes longer than the value which can be stored there. The first 4 bytes store the length of the field and the rest the data itself.
The proper behaviour should be the same as in psql
.
To be fixed..
Why the max lengths were increased by 4?