added DuplicateTypeException for Postgresql.