X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9DCAC9DCCD7 for ; Sat, 17 Dec 2005 08:31:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84298-04 for ; Sat, 17 Dec 2005 08:31:43 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by postgresql.org (Postfix) with ESMTP id 885279DCCB4 for ; Sat, 17 Dec 2005 08:31:38 -0400 (AST) Received: by wproxy.gmail.com with SMTP id 57so750336wri for ; Sat, 17 Dec 2005 04:31:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nmn66QcWcklWyZnsiU8IwNNNDySAF0ScGJpafdzkNV3UFyVwrugXkPyniV7dHcUdLBD3Ku+h/3y8JkOOzP0qIfh1WMtbRsp3W5xd/Cw+P7V+yBka5Eeb2J/mgEyeM0Jo1bIs1rdYrRVVi1Wf7adCrvhoIjWoFm83NYDD9Yci4oY= Received: by 10.54.121.13 with SMTP id t13mr86070wrc; Sat, 17 Dec 2005 04:31:40 -0800 (PST) Received: by 10.54.98.6 with HTTP; Sat, 17 Dec 2005 04:31:40 -0800 (PST) Message-ID: Date: Sat, 17 Dec 2005 07:31:40 -0500 From: Jaime Casanova To: "Jim C. Nasby" Subject: Re: Overriding the optimizer Cc: Mark Kirkwood , "Craig A. James" , pgsql-performance@postgresql.org In-Reply-To: <20051216224512.GX53809@pervasive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200512141603.52583.blargity@gmail.com> <1134629567.14248.27.camel@firebolt> <200512150148.16125.blargity@gmail.com> <1134644526.14248.60.camel@firebolt> <43A1C40D.8040006@paradise.net.nz> <43A1F6DB.3080805@modgraph-usa.com> <43A226E7.7040508@paradise.net.nz> <43A22BE3.6020103@modgraph-usa.com> <43A231AA.9070708@paradise.net.nz> <20051216224512.GX53809@pervasive.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.086 required=5 tests=[AWL=0.086] X-Spam-Score: 0.086 X-Spam-Level: X-Archive-Number: 200512/424 X-Sequence-Number: 16245 > > Yeah it would - an implementation I have seen that I like is where the > > developer can supply the *entire* execution plan with a query. This is > > complex enough to make casual use unlikely :-), but provides the abilit= y > > to try out other plans, and also fix that vital query that must run > > today..... > > Being able to specify an exact plan would also provide for query plan > stability; something that is critically important in certain > applications. If you have to meet a specific response time requirement > for a query, you can't afford to have the optimizer suddenly decide that > some other plan might be faster when in fact it's much slower. Plan stability doesn't mean time response stability... The plan that today is almost instantaneous tomorrow can take hours... -- regards, Jaime Casanova (DBA: DataBase Aniquilator ;)