Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2C0B7632541 for ; Mon, 29 Mar 2010 15:18:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 28000-10 for ; Mon, 29 Mar 2010 18:18:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148101.authsmtp.com (outmail148101.authsmtp.com [62.13.148.101]) by mail.postgresql.org (Postfix) with ESMTP id 212EB62DBD2 for ; Mon, 29 Mar 2010 15:18:02 -0300 (ADT) Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt4.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o2TII1DB054086; Mon, 29 Mar 2010 19:18:01 +0100 (BST) Received: from [192.168.0.2] (88-110-156-192.dynamic.dsl.as9105.com [88.110.156.192]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id o2TIHuk2085084; Mon, 29 Mar 2010 19:17:56 +0100 (BST) Subject: Re: enable_joinremoval From: Simon Riggs To: Tom Lane Cc: Robert Haas , pgsql-hackers@postgresql.org In-Reply-To: <14201.1269877615@sss.pgh.pa.us> References: <1269851630.3684.3636.camel@ebony> <603c8f071003290637q14d431f7j90afabd6fd2ec952@mail.gmail.com> <12679.1269873374@sss.pgh.pa.us> <603c8f071003290820h3553d223le3b5228f789608f9@mail.gmail.com> <13795.1269876446@sss.pgh.pa.us> <603c8f071003290832u23130f2x84ffa459e312269c@mail.gmail.com> <14201.1269877615@sss.pgh.pa.us> Content-Type: text/plain Date: Mon, 29 Mar 2010 19:17:55 +0100 Message-Id: <1269886675.3684.4064.camel@ebony> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Server-Quench: 6667bd11-3b5f-11df-80b9-0022640b883e X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOTQEd DAteCiN5VAwpPBRK HVkIKg5MJUcNSQVJ NksadRtFagxbYFhD HGQLWlREUVR7WGR/ bg0fZQ1DY0tOQQRv VlZIS1BNEQ1vHhxP WRx6K2E3LAdGcHtw bUIsWHJfWgp8c0B6 EBpVFHAFN2I2dWEe BBZFfwMGeR5Kfh1H bFR/BnsFYjBJBC9q VzwTFhsSEA9kHWxY RAgHKV8lQ0EKGCQx QhccFDFH X-Authentic-SMTP: 61633235383639.1015:706/Kp X-AuthFastPath: 255 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-Spam-Status: No, hits=-2.408 tagged_above=-10 required=5 tests=AWL=0.191, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/1169 X-Sequence-Number: 159945 On Mon, 2010-03-29 at 11:46 -0400, Tom Lane wrote: > Robert Haas writes: > > OK, I'll write a patch for that; and a consensus emerges that we > > should also have enable_joinremoval, then I will add that as well. I > > think the only argument for NOT having enable_joinremoval is that you > > can always modify the query to say SELECT * rather than some more > > specific SELECT list, > > Uh, no, the argument for not having enable_joinremoval is that it's > useless. > > In particular, I categorically deny the argument that putting it in will > reduce user confusion. If anyone is confused because EXPLAIN shows that > some table isn't getting joined to, you think that the fact that > somewhere in the manual is a mention of enable_joinremoval will > un-confuse them? If they knew that switch was there or what it did, > they wouldn't be confused to begin with. You're not addressing the original point. I have been asked how would users know which tables have been removed and whether there is a way of checking that. That is not a request for a tuning feature, or something to reduce user confusion. If you don't like "enable_joinremoval" that's fine but it would be good to answer the original request with an alternative proposal. -- Simon Riggs www.2ndQuadrant.com