There are useful scripts for your work with PostgreSQL
There are useful scripts for your work with PostgreSQL | bash