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

opennetsys/c3-utils-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Shell scripts for deterministically getting and setting a postgreSQL database

Resources

License

Stars

Watchers

Forks

Packages

No packages published