Skip to content

Instantly share code, notes, and snippets.

@garethrees
Last active February 16, 2020 17:34
Show Gist options
  • Save garethrees/42ca8dd64182515d6aa90000463ebfe1 to your computer and use it in GitHub Desktop.
Save garethrees/42ca8dd64182515d6aa90000463ebfe1 to your computer and use it in GitHub Desktop.
List all indexes in postgres database
SELECT indexname FROM pg_indexes;
@garethrees
Copy link
Author

Wow, didn't realise this was getting so much attention. I don't think I'd been getting emails about gists until this week – perhaps its a new GitHub thing. Anyway, fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment