From: | Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com> |
---|---|
To: | Andreas Kretschmer <andreas(at)a-kretschmer(dot)de> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Case Insensitive |
Date: | 2019-03-28 08:33:20 |
Message-ID: | CADp-Sm6sX1e2BDXhVpM=Wep7AopSVEW4-+Xyzf=oiH6JusCCGQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
On Thu, 28 Mar, 2019, 4:28 PM Andreas Kretschmer, <andreas(at)a-kretschmer(dot)de>
wrote:
>
>
> Am 28.03.19 um 09:20 schrieb Sridhar N Bamandlapally:
> > Hi PG-General and Pgsql-Admin
> >
> > Can we achieve CASE INSENSITIVE in PostgreSQL?
>
> test=# create extension citext;
> CREATE EXTENSION
> test=*# create table emp (eid int, ename citext);
> CREATE TABLE
> test=*# insert into emp values (1, 'aaa');
> INSERT 0 1
> test=*# insert into emp values (2, 'AAA');
> INSERT 0 1
> test=*# select * from emp where ename = 'aaa';
> eid | ename
> -----+-------
> 1 | aaa
> 2 | AAA
> (2 rows)
>
Ummm... Will it use an index (a BTree index)?
>
> Regards, Andreas
>
> --
> 2ndQuadrant - The PostgreSQL Support Company.
> www.2ndQuadrant.com
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sameer Kumar | 2019-03-28 08:37:10 | Re: Case Insensitive |
Previous Message | Steve Atkins | 2019-03-28 08:33:01 | Re: Case Insensitive |
From | Date | Subject | |
---|---|---|---|
Next Message | Sameer Kumar | 2019-03-28 08:37:10 | Re: Case Insensitive |
Previous Message | Steve Atkins | 2019-03-28 08:33:01 | Re: Case Insensitive |