Re: Case insensitive collation
| От | Alex Hunsaker |
|---|---|
| Тема | Re: Case insensitive collation |
| Дата | |
| Msg-id | CAFaPBrRVAK_AbgMr+GRf1MdSvhtw4LnkqhMGK_02B2kOWmQ31w@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Case insensitive collation (Marcel van Pinxteren <marcel.van.pinxteren@gmail.com>) |
| Ответы |
Re: Case insensitive collation
|
| Список | pgsql-general |
On Fri, Jan 18, 2013 at 6:13 AM, Marcel van Pinxteren <marcel.van.pinxteren@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 allowed2. 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).
В списке pgsql-general по дате отправления: