Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Latest commit

 

History

History
7 lines (4 loc) · 467 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 467 Bytes

These two shell scripts can be used to deterministically get and set state from a postgres database.

First, the database gets dumped using pgdump.

Then, the real magic happens with the help of Antti Kaihola's package, split sort. The data in the dump is split into new sql files by table name and sorted on the primary key.

Finally, a little cleanup.