Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 905562E010B for ; Thu, 13 Dec 2007 20:27:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 68682-07 for ; Thu, 13 Dec 2007 20:27:19 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by postgresql.org (Postfix) with ESMTP id AFB512E0125 for ; Thu, 13 Dec 2007 20:27:25 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id i10so1446871mue.3 for ; Thu, 13 Dec 2007 16:27:24 -0800 (PST) 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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hz0vcL63xbYIbOi32tGSFFAoK3hP3V2OVe2pFnLy3fY=; b=LGA0kx5xpf/bd5bfpkQDZzSKwhEy6xSdFJo+n7bS2m2u8DjmqVkaEIXZT7fMZO0acq6X7nteonPbAyilmASMZnBxCZkSpNDuc0PLyGA4ljUezgSCmv6MhNxWffSROEgNQ1XA2Otf+8LhC0Job+hc+2TfTOt7Lb8Xa/sAiTGIee8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AVY28aiLnNjc/ev+EsMJU5esXFEAv7h+znqVSt0l+/8bauq2dh1zpPngHu3Abu1AKGLguYNxv4eT3g+oUiKa5MNH0te47feAExOz3MDnyZ0/J+CGZWhYcPnLpz4C1jjtssWat/JHUOcnXUOfQcj7tXFEhWpBUxL5oAqjGm3gMRM= Received: by 10.82.174.20 with SMTP id w20mr7083413bue.7.1197592043461; Thu, 13 Dec 2007 16:27:23 -0800 (PST) Received: by 10.82.120.6 with HTTP; Thu, 13 Dec 2007 16:27:23 -0800 (PST) Message-ID: <1d4e0c10712131627q7cc8cccdv4494cd6c69c0bc13@mail.gmail.com> Date: Fri, 14 Dec 2007 01:27:23 +0100 From: "Guillaume Smet" To: "Oliver Jowett" Subject: Re: Slow query after upgrades Cc: "Tom Lane" , "Tom Duffey" , pgsql-jdbc@postgresql.org In-Reply-To: <4761C641.30308@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> <4761A221.80604@opencloud.com> <1d4e0c10712131358m4bbc3f57t7e33c6c8ad2b3710@mail.gmail.com> <435EC9B4-F3DD-4136-9070-93E0DBB94B3F@techbydesign.com> <1d4e0c10712131452l65841793r449eb3c7cffbf3a5@mail.gmail.com> <0116C2A9-8DB5-4EBE-A66B-BE7F2A11651C@techbydesign.com> <4761BACA.4020008@opencloud.com> <22413.1197588665@sss.pgh.pa.us> <4761C641.30308@opencloud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/107 X-Sequence-Number: 17962 On Dec 14, 2007 12:54 AM, Oliver Jowett wrote: > The JDBC driver is using an unnamed statement in this case, shouldn't > the planner end up using index selectivity estimates based on the actual > parameter values? Tom fixed that during the 8.3 development cycle IIRC but it was not the case in 8.2 and earlier. -- Guillaume