Re: BUG #13863: Select from views gives wrong results

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, wrb <wrb(at)autistici(dot)org>, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, "pgsql-bugs\(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13863: Select from views gives wrong results
Date: 2016-02-07 23:21:57
Message-ID: 87si14w1tz.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.

--
Andrew (irc:RhodiumToad)

Attachment Content-Type Size
havingfix.patch text/x-patch 5.2 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2016-02-08 05:32:48 Re: Re[2]: [BUGS] Segfault in MemoryContextAlloc
Previous Message Andres Freund 2016-02-07 20:08:32 Re: BUG #13891: Deparsed arbiter WHERE clauses cannot be parsed by Postgres