"Waldomiro" <wmiro(at)ig(dot)com(dot)br> writes:
> now I have an error "value too long for type character(100)"
Perhaps you are using unicode but forgot to set up the database with the
proper encoding? The DB is going to count bytes not characters if it's
in SQL_ASCII encoding, for example.
regards, tom lane