The current version of DBSchema dumps out all the SQL in a single file and gets the order wrong for PostgreSQL;
the tables are created before the the sequences, but a table can require the existence of a sequence if it uses nextval() as a default value in a column.
Obviously dbschema cannot analyse all dependencies but I know the correct order for my database so it would be very nice if we could manually define (or at least override) the export-order.