pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: wrb <wrb@autistici.org>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13863: Select from views gives wrong results
Date: Mon, 8 Feb 2016 12:09:32 +0100
Message-ID: <20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de> (raw)
In-Reply-To: <87si14w1tz.fsf@news-spur.riddles.org.uk>
References: <20160113183558.12989.56904@wrigleys.postgresql.org>
	<CAJrrPGdmBM9=ttRfT24FOzDySE9dSs1Uw0+ynD5FAo+pFR9Z8w@mail.gmail.com>
	<82C006C0-07A7-401B-9BDA-0BABD9025099@autistici.org>
	<CAEZATCXF3ZdUWkxUSX3CJUdX14yfVf++CW0KSZ1fSjYgFoFSAA@mail.gmail.com>
	<20160116131202.GP10941@awork2.anarazel.de>
	<CAEZATCWK-XDQxn2L1W6Te0LTu5XRUqyEo57kLQyxLJOG1VTrpQ@mail.gmail.com>
	<87egdfuk2n.fsf@news-spur.riddles.org.uk>
	<CAEZATCW1UtC7duDX6Bcf+7A26Ug3SDJTQrLfuqx3hH-u-fQ-vQ@mail.gmail.com>
	<87si14w1tz.fsf@news-spur.riddles.org.uk>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (14+ messages)

Message-ID: <20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de>
Permalink:  ../20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de, andrew@tao11.riddles.org.uk, dean.a.rasheed@gmail.com, wrb@autistici.org, kommi.haribabu@gmail.com
  Subject: Re: BUG #13863: Select from views gives wrong results
  In-Reply-To: <20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de>
  References: <20160113183558.12989.56904@wrigleys.postgresql.org> <CAJrrPGdmBM9=ttRfT24FOzDySE9dSs1Uw0+ynD5FAo+pFR9Z8w@mail.gmail.com> <82C006C0-07A7-401B-9BDA-0BABD9025099@autistici.org> <CAEZATCXF3ZdUWkxUSX3CJUdX14yfVf++CW0KSZ1fSjYgFoFSAA@mail.gmail.com> <20160116131202.GP10941@awork2.anarazel.de> <CAEZATCWK-XDQxn2L1W6Te0LTu5XRUqyEo57kLQyxLJOG1VTrpQ@mail.gmail.com> <87egdfuk2n.fsf@news-spur.riddles.org.uk> <CAEZATCW1UtC7duDX6Bcf+7A26Ug3SDJTQrLfuqx3hH-u-fQ-vQ@mail.gmail.com> <87si14w1tz.fsf@news-spur.riddles.org.uk> <20160208110932.3ditvrgc2hazqp3e@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox