Skip to content

Instantly share code, notes, and snippets.

@emailrhoads
Last active June 4, 2020 19:37
Show Gist options
  • Save emailrhoads/64c37005e272a32c344aaf038cbea7a7 to your computer and use it in GitHub Desktop.
Save emailrhoads/64c37005e272a32c344aaf038cbea7a7 to your computer and use it in GitHub Desktop.
[Finding Running Postgres Versions] #postgres

List clusters

pg_lsclusters

Start Clusters

sudo pg_ctlcluster 9.6 main start

Change ports for clusters

grep -H '^port' /etc/postgresql/*/main/postgresql.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment