booktown=# CREATE INDEX upperjtitlejdx ON books
booktown-f (upper(title));
CREATE
booktown=# SELECT title FROM books WHERE upper(title) = 'DUNE';
title
Dune
(1 row)