Manual:$wgExtNewIndexes

Details
Used to add indexes to existing tables. For Postgres, you can add the index clause instead of a file name.