in reply to Re: Class::DBI and 'serial' columns in PostgreSQL
in thread Class::DBI and 'serial' columns in PostgreSQL

Thanks! __PACKAGE__->sequence('declaration_id_seq'); did the trick. The primary key was deduced all right.