Created
November 8, 2019 10:41
-
-
Save maciejwalkowiak/e71788f2811d6eaccd79078b2fe68ece to your computer and use it in GitHub Desktop.
PostgreSQL: How to list all 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
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