Index the result of an expression used in predicates.
Section: PostgreSQL index types
Expression index
sql
sql
CREATE INDEX idx_users_lower_email ON users ((lower(email)));Explanation
Expression indexes help when the query applies a function such as `lower(email)`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing PostgreSQL index types