Skip to content

Instantly share code, notes, and snippets.

@nikhilbchilwant
Last active September 6, 2018 08:39
Show Gist options
  • Save nikhilbchilwant/bd819542bf56d908d9c9b9fbd96c96b0 to your computer and use it in GitHub Desktop.
Save nikhilbchilwant/bd819542bf56d908d9c9b9fbd96c96b0 to your computer and use it in GitHub Desktop.
Commonlt used commands by developer working on Ubuntu 16.04 + Postgres + Java
Restart postgres server : /etc/init.d/postgresql restart
Get connection count : SELECT sum(numbackends) FROM pg_stat_database;
Get databases : \l
Quit psql : \q
Edit authorization : sudo vim /etc/postgresql/9.5/main/pg_hba.conf
Edit connections : sudo vim /etc/postgresql/9.5/main/postgresql.conf
Clean mven local repository : mvn dependency:purge-local-repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment