> create unique index fooi on foo (lower(trim both> '\040\f\t\r\n\a\b\e\v' from name));
Whoops, I had to shorten that to '\040\f\t\r\n\b'...I was borrowingfrom regular expressions again. >:)