Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9QTL-0002g3-4L for pgsql-general@arkaria.postgresql.org; Thu, 28 Mar 2019 08:33:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9QTJ-00055a-Dr for pgsql-general@arkaria.postgresql.org; Thu, 28 Mar 2019 08:33:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9QTI-00055S-P6 for pgsql-general@lists.postgresql.org; Thu, 28 Mar 2019 08:33:13 +0000 Received: from mail.wordtothewise.com ([104.225.223.158]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9QTD-0008Nb-G6 for pgsql-general@lists.postgresql.org; Thu, 28 Mar 2019 08:33:12 +0000 Received: from [10.214.128.117] (unknown [217.173.105.122]) by mail.wordtothewise.com (Postfix) with ESMTPSA id CB0E19F146 for ; Thu, 28 Mar 2019 01:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wordtothewise.com; s=aardvark; t=1553761984; bh=Z5xUT4BQCxeQB/BqNcKd4gj/iAHMv9ryUbqHc6kkIt0=; h=From:Subject:Date:References:To:In-Reply-To:From; b=dCLwzhFAFjSQON2H/uhmq25gxuxTaU7/fSGtD2d6zmFp9PS2/NGlpHWFkfSOznvcV 6NwjsEORnRzQf+lKek3pvOxcej9FxFFrR6RMcsK0/rS0k/UJgHkPXcFsB3whTPHhje OXWXwTx65D1f8ekG+D9Lzt55b93An+lvdv7nRbFo= From: Steve Atkins Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: Case Insensitive Date: Thu, 28 Mar 2019 08:33:01 +0000 References: To: PG mailing List In-Reply-To: Message-Id: <150586A3-A8F4-4B80-9A4B-310DE265B4B3@blighty.com> X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Mar 28, 2019, at 8:29 AM, Ron wrote: > > On 3/28/19 3:23 AM, Sameer Kumar wrote: > [snip] >> You can write a query with upper function: >> >> select * from emp where upper(ename)=upper('aaa'); > > That's a guaranteed table scan. Unless you have an index on upper(ename). Cheers, Steve