Rob Brenart schrob: > I have a simple table to store account names... I want each name to be > unique in a case insensitive manner... but I want the case the user > enters to be remembered so I can't do a simple lower() on the data's > way in. > > Is there an easy way to go about this? Would creating an unique index on an expression be easy enough? E.g. create unique index idx_foo_unique_nocase on foo ((lower(bar))); > Am I about to write my first server side function for postgresql? I'm afraid not :-) regards, Andreas -- ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your message can get through to the mailing list cleanly