Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5AEB447624A; Tue, 5 Nov 2002 00:50:01 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id E3EE04761B2; Tue, 5 Nov 2002 00:50:00 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 48CA4D61B; Mon, 4 Nov 2002 21:50:06 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 3E8475C02; Mon, 4 Nov 2002 21:50:06 -0800 (PST) Date: Mon, 4 Nov 2002 21:50:06 -0800 (PST) From: Stephan Szabo To: =?iso-8859-1?Q?Sonia_S=E1nchez_D=EDaz?= Cc: pgsql , pgadmin Subject: Re: About lower and uppercase In-Reply-To: <00af01c2847f$18792220$ffd6fea9@avantel.net> Message-ID: <20021104214740.U19332-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/52 X-Sequence-Number: 6240 On Mon, 4 Nov 2002, [iso-8859-1] Sonia S=E1nchez D=EDaz wrote: > Hi! > > I don't know if this is possible from postgresql configuration... > > I want to ignore the use of uppercase and lowercase from the data restored > into the DB... > > I mean, if I write a query like this: > > select * from fruits where fruit_name like 'orange'; > > I could get any result where the string looks like: > > orange > Orange > ORANGE > > Is it possible??? Not really without doing a little bit of changing to the query (for example using ILIKE rather than LIKE or lower(fruit_name) like 'orange' with an appropriate index on lower(fruit_name). Theoretically, it could perhaps be possible to create a locale which compare 'orange' and 'OraNgE' equally and then initdb in that locale, but I've never tried it so I don't know if it'd work.