> On Mar 6, 2024, at 13:18, Lorusso Domenico <domenico.l76@xxxxxxxxx> wrote: > So there is a way to automatically generate DDL in the right order? Standard pg_dump creates files that are in the proper order, although if you exclusive some tables or schemas from the backup, those might cause errors if references from the objects you *do* import.