Created
March 27, 2018 16:06
-
-
Save Capncavedan/34cb8938ee1e2ec5e6cd0f7b02b51db5 to your computer and use it in GitHub Desktop.
Find corrupt/invalid Postgresql indexes
This file contains 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 pg_class.relname | |
FROM pg_class, pg_index | |
WHERE pg_index.indisvalid = false | |
AND pg_index.indexrelid = pg_class.oid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment