split_postgres_dump is a small Perl script that breaks a –schema-only dump file into pre and post sections. The pre section contains everything needed to import the data, while the post section contains those actions that should be done after the data is loaded, namely the creation of indexes, constraints, and triggers.
The latest version (1.3.3) can be downloaded at:
Everyone is encouraged to look over and make improvements to the code. The latest development version can be obtained from GitHub by running:
git clone firstname.lastname@example.org:bucardo/Split_postgres_dump.git
Bugs can be reported at the GitHub issues page.