pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedCase-insensitive
2+ messages / 2 participants
[nested] [flat]
* Case-insensitive
@ 2002-12-06 12:33 Pedro Igor <pedroigor@aip.com.br>
0 siblings, 1 reply; 2+ messages in thread
From: Pedro Igor @ 2002-12-06 12:33 UTC (permalink / raw)
To: pgsql-sql
Someone knows how config the postgresql for case-insensitive mode ?
Pedro Igor
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Case-insensitive
@ 2002-12-06 13:11 Richard Huxton <dev@archonet.com>
parent: Pedro Igor <pedroigor@aip.com.br>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Huxton @ 2002-12-06 13:11 UTC (permalink / raw)
To: Pedro Igor <pedroigor@aip.com.br>; pgsql-sql
On Friday 06 Dec 2002 12:33 pm, Pedro Igor wrote:
> Someone knows how config the postgresql for case-insensitive mode ?
There isn't really a case-insensitive mode (for various reasons to do with
locales AFAICT).
There are various case-insensitive comparisons: ILIKE instead of LIKE etc.
A very common approach is to use PG's functional indexes:
SELECT * FROM foo WHERE lower(foo_col) LIKE 'blah%';
along with
CREATE INDEX foo_lwr_col ON foo (lower(foo_col));
--
Richard Huxton
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-12-06 13:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-06 12:33 Case-insensitive Pedro Igor <pedroigor@aip.com.br>
2002-12-06 13:11 ` Richard Huxton <dev@archonet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox