X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4A57B52882 for ; Thu, 23 Jun 2005 15:55:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10225-05 for ; Thu, 23 Jun 2005 18:55:17 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 1335D528C3 for ; Thu, 23 Jun 2005 15:55:14 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7522726; Thu, 23 Jun 2005 11:57:22 -0700 From: Josh Berkus Organization: Aglio Database Solutions To: Bruno Wolff III Subject: Re: parameterized LIKE does not use index Date: Thu, 23 Jun 2005 11:55:35 -0700 User-Agent: KMail/1.8 Cc: Kurt De Grave , pgsql-performance@postgresql.org References: <42BA73CE.4030909@student.kuleuven.ac.be> <20050623141854.GA7505@wolff.to> In-Reply-To: <20050623141854.GA7505@wolff.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506231155.36126.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/462 X-Sequence-Number: 13099 Bruno, > I remember some discussion about delaying planning until the first > actual query so that planning could use actual parameters to do > the planning. If you really want to have it check the parameters > every time, I think you will need to replan every time. I don't > know if there is a way to save some of the prepare working while > doing this. That wouldn't help much in Kurt's case. Nor in most "real" cases, which is why I think the idea never went anywhere. -- Josh Berkus Aglio Database Solutions San Francisco