On Fri, Jan 18, 2013 at 6:13 AM, Marcel van Pinxteren < marcel.van.pinxte...@gmail.com> wrote:
> Desired behaviour: > 1. If there is a row with 'ABC' (in a unique column) in the table, a row > with 'abc' should not be allowed > 2. If I do SELECT * FROM aTable WHERE aColumn = 'ABC', I should see a row > with 'abc' as well (if there is one in the table) > > This has been described in this mailing list a few months ago, in more > detail. > Have you seen the citext module?: http://www.postgresql.org/docs/current/static/citext.html. It does pretty much that (albeit by having columns be the citext type instead of text or varchar).