Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by postgresql.org (Postfix) with ESMTP id B3F8C47587E; Wed, 10 Jul 2002 09:07:08 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 17SHBV-000CoU-0U; Wed, 10 Jul 2002 14:07:12 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17SHFu-0002VU-00; Wed, 10 Jul 2002 14:11:42 +0100 Subject: Re: [GENERAL] Disabling case sensitivity From: Oliver Elphick To: igor Cc: pgsql-admin@postgresql.org, pgsql-general@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 10 Jul 2002 14:11:42 +0100 Message-Id: <1026306702.1183.148.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200207/161 X-Sequence-Number: 4847 On Wed, 2002-07-10 at 00:11, igor wrote: > I would like to know if there is some way how to disable case > sensitivity in PostgreSQL server. With some varaiable or some setting > in configuration file or how? > So after this would be the same 'Good' and 'GOOD' or 'GoOd' in some > SELECT from table where username='Good'. I wanna get the same row > with: > SELECT from table where username='GoOd'; > Exactly like in MS SQL server. You can use ILIKE, or search for a match to lower('GoOd') (or upper()).