Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 977F664FD35 for ; Fri, 22 Aug 2008 08:13:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21248-06 for ; Fri, 22 Aug 2008 08:13:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.231]) by postgresql.org (Postfix) with ESMTP id 9749664FCCF for ; Fri, 22 Aug 2008 08:13:48 -0300 (ADT) Received: by qb-out-0506.google.com with SMTP id d8so667019qbc.23 for ; Fri, 22 Aug 2008 04:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=uIYJMkZVyqUOYCZAzwPdPEZ0vJfe1EKVad+UyXkV4d8=; b=PXkNcuVqYKRkKcisjIXXWaRi+RsqQJBQrE8yOkIcHtOYkapkQBtBFs6EFqqIjCMHeR f1IW/XPypnmYqyyccWbAdKM5fjyqzSZaq3pB6rMmNXLjAbrTq8yXPYjfRssboXDhzz5k RE7XuUr4DwlaadRRev1PGkjSEVTVDeDszE9SE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=VedgYHUeAmp3sF/xL2l8kSWlFwZLd79wk+ipTUJr4lsJSMezEJ0CXQAas7Be/CBeBQ SYLia0uwe2/KmJ6iDdgFaJtF3UyjPMJzAsTz7KzJ9lD/D3zbPFFQcwOxc58syQ2H11Ad 9JEDZcEhq7kkwMIiGmZ1ZpWGxIttqHNEhqpeU= Received: by 10.64.196.9 with SMTP id t9mr771441qbf.72.1219403627102; Fri, 22 Aug 2008 04:13:47 -0700 (PDT) Received: by 10.65.200.5 with HTTP; Fri, 22 Aug 2008 04:13:47 -0700 (PDT) Message-ID: Date: Fri, 22 Aug 2008 16:43:47 +0530 From: "c k" To: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: LIKE and SIMILAR TO MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32831_19539851.1219403627055" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200808/116 X-Sequence-Number: 29961 ------=_Part_32831_19539851.1219403627055 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello all, As we are migrating our ERP application from MySQL to PostgreSQL we have some difficulties. One of them is use of Like and Similar to operators. We often use LIKE to search a string from front-end without case sensetivity. As postgreSQL's LIKE is case sensitive, we tried ILIKE and SIMILAR TO, but both are slower than LIKE and we must need case insensitivity. How can we get this by increases speed. All search columns are VARCHAR(100)to VARCHAR(250). Currently without index. Thanks, CPK ------=_Part_32831_19539851.1219403627055 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hello all,
As we are migrating our ERP application from MySQL to PostgreSQL we have some difficulties. One of them is use of Like and Similar to operators. We often use LIKE to search a string from front-end without case sensetivity. As postgreSQL's LIKE is case sensitive, we tried ILIKE and SIMILAR TO, but both are slower than LIKE and we must need case insensitivity. How can we get this by increases speed. All search columns are VARCHAR(100)to VARCHAR(250). Currently without index.

Thanks,
CPK
------=_Part_32831_19539851.1219403627055--