Utility scripts to work with postgresql
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
completions
libexec
scripts
tests
.gitignore
README.md
package.sh

README.md

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 databases
  • pg copy <origin> <target>: make a copy of a database
  • pg mv <origin> <target>: rename a database
  • pg kill-connections <database>: kill all connections to a database