In the example of "select distinct expression", the planner will never notice that that expression has anything to do with an index.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных