Fix foreign key dump in postgres 9.3