Received: from candle.pha.pa.us (pgman@nav-43.dsl.navpoint.com [162.33.245.46]) by hub.org (8.10.1/8.10.1) with ESMTP id e5NI7P108925 for ; Fri, 23 Jun 2000 14:07:25 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id OAA19976; Fri, 23 Jun 2000 14:06:50 -0400 (EDT) From: Bruce Momjian Message-Id: <200006231806.OAA19976@candle.pha.pa.us> Subject: Re: Need to improve performance In-Reply-To: <3953A1D8.DF3392CD@erols.com> "from Vassili A Akimov at Jun 23, 2000 01:43:52 pm" To: Vassili A Akimov Date: Fri, 23 Jun 2000 14:06:50 -0400 (EDT) CC: Andrew Snow , "Pgsql-General@Postgresql. Org" , mitch@venux.net X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200006/585 > > Thank you gentelmen! It seems that regexp was the reason! I enabled > likeplanning and it i=didn't improve the performance until I replaced '~*' with > 'LIKE'. Thank you again! The issue is that ~ and LIKE have similar performance. ~* is case-insensitive, and can not used indexes. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026