Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aSjhJ-0004G4-8a for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Feb 2016 11:09:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aSjhI-0007h5-1j for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Feb 2016 11:09:36 +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 1aSjhH-0007gy-KR for pgsql-bugs@postgresql.org; Mon, 08 Feb 2016 11:09:35 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aSjhG-0008D4-3p for pgsql-bugs@postgresql.org; Mon, 08 Feb 2016 11:09:35 +0000 Received: from intern.anarazel.de (tmo-103-20.customers.d1-online.com [80.187.103.20]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 18059580003; Mon, 8 Feb 2016 12:09:33 +0100 (CET) Date: Mon, 8 Feb 2016 12:09:32 +0100 From: Andres Freund To: Andrew Gierth Cc: Dean Rasheed , wrb , Haribabu Kommi , "pgsql-bugs@postgresql.org" Subject: Re: BUG #13863: Select from views gives wrong results Message-ID: <20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de> References: <20160113183558.12989.56904@wrigleys.postgresql.org> <82C006C0-07A7-401B-9BDA-0BABD9025099@autistici.org> <20160116131202.GP10941@awork2.anarazel.de> <87egdfuk2n.fsf@news-spur.riddles.org.uk> <87si14w1tz.fsf@news-spur.riddles.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87si14w1tz.fsf@news-spur.riddles.org.uk> X-Pg-Spam-Score: -3.7 (---) 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 2016-02-07 23:21:57 +0000, Andrew Gierth wrote: > I think for now the following patch is best. This preserves the ability > to push degenerate HAVING clauses through an explicit GROUP BY () as > well as an implicit one, but prevents pushdown in all other cases. > > Includes comment and regression test. I've pushed this now. I'd greatly appreciate sending/pinging earlier than the day of wrapping, next time round... Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs