Awesome
pg
Wrapper script for common postgres command line operations.
Installation
Using basher:
$ basher install juanibiapina/pg
Or clone the repository and add the bin
folder to your path.
Commands
pg list
: list databasespg copy <origin> <target>
: make a copy of a databasepg mv <origin> <target>
: rename a databasepg kill-connections <database>
: kill all connections to a database