Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJNdi-0004jj-Uc for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jul 2015 15:14:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJNdi-00084z-Gi for pgsql-bugs@arkaria.postgresql.org; Sun, 26 Jul 2015 15:14:58 +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) (envelope-from ) id 1ZJNd5-0005YR-24; Sun, 26 Jul 2015 15:14:19 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZJNd2-00011b-Fq; Sun, 26 Jul 2015 15:14:18 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 10DF5860005; Sun, 26 Jul 2015 17:14:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-6.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC4D3B.dip0.t-ipconnect.de [93.220.77.59]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 0B772860002; Sun, 26 Jul 2015 17:14:12 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 9B61010105B; Sun, 26 Jul 2015 17:14:11 +0200 (CEST) Date: Sun, 26 Jul 2015 17:14:11 +0200 From: Andres Freund To: Jeevan Chalke Cc: PostgreSQL Hackers , Postgres-Bugs Subject: Re: [HACKERS] GSets: Fix bug involving GROUPING and HAVING together Message-ID: <20150726151411.GC12755@awork2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-07-14 14:51:09 +0530, Jeevan Chalke wrote: > Fix this by adding GroupingFunc node in this walker. We do it correctly in > contain_aggs_of_level_walker() in which we have handling for GroupingFunc > there. > > Attached patch to fix this. Pushed, thanks for fix! -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs