Closed ivasilov closed 3 months ago
We can find the same indexes which only differ by index name by using
SELECT array_agg(indexname) AS indexes, replace(indexdef, indexname, '') AS defn FROM pg_indexes GROUP BY defn HAVING count(*) > 1;
thats a nice solution for detecting dupes easily
This rule is misreporting on tables which have two unrelated indexes to each other. I'm using the Slack clone template to test.
We can find the same indexes which only differ by index name by using