Check the length of data before saving it and truncate if needed.
> Some tables where directly updated from web forms, so when the input
> is longer than the fileld, Postgres forces a rollback. This might be
> right, but is very angry for me. Is there a way to teach Postgres
> that it must truncate these values?