in reply to Odd Class::DBI sequence behaviour

If you define the primary key as integer instead of serial Class::DBI would populate it itself and the database would not brake it. You could add default nextval('identity_identity_id_seq') so that non Class::DBI code could use the same sequence.