by jwcacces · 7y ago · 0 comments
See https://www.postgresql.org/docs/current/sql-createindex.html
> An index field can be an expression computed from the values of one or more columns of the table row. This feature can be used to obtain fast access to data based on some transformation of the basic data. For example, an index computed on upper(col) would allow the clause WHERE upper(col) = 'JIM' to use an index.
No need to maintain a separate view or its index