"enediel" <enediel(at)com(dot)ith(dot)tur(dot)cu> writes:
> I need to create a column, where the information is conserved in the same
> way that it was written by the user, but the data of this column is unique
> if it's only taken to capital
CREATE UNIQUE INDEX foo ON tab (UPPER(column));
regards, tom lane