Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK3N1-00005U-AV for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Nov 2017 14:29:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eK3N0-0003rl-No for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Nov 2017 14:29:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eK3N0-0003rb-IJ for pgsql-bugs@lists.postgresql.org; Wed, 29 Nov 2017 14:29:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eK3Mt-0002n6-I5 for pgsql-bugs@postgresql.org; Wed, 29 Nov 2017 14:29:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vATETT7f028756; Wed, 29 Nov 2017 09:29:29 -0500 From: Tom Lane To: Andrew Gierth cc: Michael Paquier , Heikki Linnakangas , Pg Bugs Subject: Re: [BUGS] Improper const-evaluation of HAVING with grouping sets and subquery pullup In-reply-to: <87lgipwpp2.fsf@news-spur.riddles.org.uk> References: <7dbdcf5c-b5a6-ef89-4958-da212fe10176@iki.fi> <1197.1507820787@sss.pgh.pa.us> <87efq3lq93.fsf@news-spur.riddles.org.uk> <87a80rli2w.fsf@news-spur.riddles.org.uk> <32319.1508163874@sss.pgh.pa.us> <8760bfku2u.fsf@news-spur.riddles.org.uk> <2431.1508166918@sss.pgh.pa.us> <871sm3ktl7.fsf@news-spur.riddles.org.uk> <87tvyyjg2s.fsf@news-spur.riddles.org.uk> <26650.1508339040@sss.pgh.pa.us> <17920.1508341358@sss.pgh.pa.us> <20857.1508959748@sss.pgh.pa.us> <87lgipwpp2.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Wed, 29 Nov 2017 06:44:41 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28754.1511965769.1@sss.pgh.pa.us> Date: Wed, 29 Nov 2017 09:29:29 -0500 Message-ID: <28755.1511965769@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > "Michael" == Michael Paquier writes: > Michael> Tom, are you planning to finish wrapping up this one? For now > Michael> I am moving it to next CF. > I can take it if Tom and Heikki are busy. FWIW, I'm not really comfortable that the proposed patch is correct or complete. It may just need more study to get there. regards, tom lane