Make a column case-insensitive with the `citext` type.
Section: Extensions and Specialized Utilities
Use CITEXT
sql
sql
ALTER TABLE public.users ALTER COLUMN email TYPE citext;Explanation
See summary for usage details.
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 Extensions and Specialized Utilities
Enable pg_trgm
Install trigram support for similarity search and GIN/GiST indexes.
Check table bloat stats
Estimate dead tuples and free space in a relation.