Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 8267F2E0046 for ; Wed, 28 May 2008 13:50:34 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13127-01 for ; Wed, 28 May 2008 13:50:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail136179.authsmtp.com (outmail136179.authsmtp.com [62.13.136.179]) by developer.postgresql.org (Postfix) with ESMTP id E68AD2E0044 for ; Wed, 28 May 2008 13:50:26 -0300 (ADT) Received: from mail.authsmtp.com (mail.authsmtp.com [62.13.128.187]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m4SGo8ic078764; Wed, 28 May 2008 17:50:08 +0100 (BST) Received: from [192.168.0.3] (85-211-226-243.dyn.gotadsl.co.uk [85.211.226.243]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m4SGo8et050270; Wed, 28 May 2008 17:50:08 +0100 (BST) Subject: Re: GEQO Benchmark From: Simon Riggs To: Tarcizio Bini Cc: pgsql-performance@postgresql.org In-Reply-To: <461a87490805280913ha5bbc90w63db53787ced2adf@mail.gmail.com> References: <55311.200.17.202.126.1211982648.squirrel@webmail.inf.ufpr.br> <27530.1211983350@sss.pgh.pa.us> <461a87490805280913ha5bbc90w63db53787ced2adf@mail.gmail.com> Content-Type: text/plain Date: Wed, 28 May 2008 17:52:40 +0100 Message-Id: <1211993560.4489.583.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 214efa84-2cd6-11dd-8782-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksadBtFag1bYFhI HGQLW1xEUVp7XGN/ awIfZQBDYEtPQQdo VlZLRlFNFgBqBAMB SEMaMW4tf1ACeHtw Z0FiEHFYWEE0d0d5 FxgFHWkbZzQ0bn0e URQMagtTeAFXfh9E a1h6AHAKZjZWKBg1 TUcABx0LExJlDREd bSw0Cho4TEAAHjs1 XRNq X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:1045/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/356 X-Sequence-Number: 30324 On Wed, 2008-05-28 at 13:13 -0300, Tarcizio Bini wrote: > Of course, the geqo_threshold can be changed so that the geqo be > performed in queries that have less than 12 tables. However, we aim to > test the GEQO algorithm in conditions where the standard algorithm > (dynamic programming) has a high cost to calculate the query plan. My understanding is the GEQO cannot arrive at a better plan than the standard optimizer, so unless you wish to measure planning time there isn't much to test. What is the quality of the plans it generates? Well that varies according to the input; sometimes it gets the right plan, other times it doesn't get close. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support