Skip to content

Instantly share code, notes, and snippets.

@migueltaoliveira
Last active October 18, 2016 13:52
Show Gist options
  • Save migueltaoliveira/473aee996836fb05ac3b to your computer and use it in GitHub Desktop.
Save migueltaoliveira/473aee996836fb05ac3b to your computer and use it in GitHub Desktop.
Postgres deadlocks
#Check deadlocks
SELECT relation::regclass, * FROM pg_locks WHERE NOT granted;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment