Created
January 27, 2020 14:32
-
-
Save ethagnawl/027c030167555f171567974783fe6f71 to your computer and use it in GitHub Desktop.
list PG indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.postgresqltutorial.com/postgresql-indexes/postgresql-list-indexes/ | |
SELECT | |
tablename, | |
indexname, | |
indexdef | |
FROM | |
pg_indexes | |
WHERE | |
schemaname = 'public' | |
ORDER BY | |
tablename, | |
indexname; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment