Page MenuHomePhabricator

Create a structure test to detect and prevent duplicate indexes
Open, LowestPublic

Description

In the past I sometimes encountered indexes that are functionally duplicate in PostgreSQL; I'm not sure about the current status. https://github.com/pgexperts/pgx_scripts/tree/master/indexes has tests that could find those (OS licence).

Event Timeline

scfc triaged this task as Lowest priority.Mar 1 2017, 5:37 PM
Krinkle renamed this task from Create a test for duplicate indexes to Create a structure test to detect and prevent duplicate indexes.Jul 18 2019, 2:51 PM
Krinkle edited projects, added MediaWiki-Core-Tests; removed MediaWiki-libs-Rdbms.
Krinkle moved this task from Inbox to PHPUnit on the MediaWiki-Core-Tests board.
Umherirrender subscribed.

With the abstract schema (T191231) this could be done in DatabaseIntegrationTest with the data from the json and is no longer related to a postgres db to do the check.