Re: How to create a case-insensitive unique constraint? - Mailing list pgsql-general

From Dennis Brakhane
Subject Re: How to create a case-insensitive unique constraint?
Date
Msg-id 226a19190809021424y1d4dce80gcd17e750c29b3cc2@mail.gmail.com
Whole thread Raw
In response to How to create a case-insensitive unique constraint?  ("Kynn Jones" <kynnjo@gmail.com>)
List pgsql-general
You can use a unique index:

CREATE UNIQUE INDEX idx_foo_unique_upper_x_upper_y ON foo
    (UPPER(x), UPPER(y));

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to create a case-insensitive unique constraint?
Next
From: "Roberts, Jon"
Date:
Subject: Re: plpgsql returning resultset