Partial and Expression Indexes in PostgreSQL

A regular index covers every row and indexes the raw column value. That's often more than a query needs, and occasionally the wrong thing entirely.