From: wrb@autistici.org
To: pgsql-bugs@postgresql.org
Subject: BUG #13863: Select from views gives wrong results
Date: Wed, 13 Jan 2016 18:35:58 +0000
Message-ID: <20160113183558.12989.56904@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13863
Logged by: W
Email address: wrb@autistici.org
PostgreSQL version: 9.5.0
Operating system: Mac OS X 10.11.2 (postgres is from homebrew)
Description:
Hello,
I noticed strange behavior while using views with the new grouping sets
functionality.
Steps to reproduce are here:
https://gist.github.com/wrb/a73f45dcd335c8bc166c
On my machine, selecting from view gives zero results while selecting from
materialize view (or using CTE) gives the correct result. There's nothing
unusual in log.
Looking at explain analyze function, it seems that the filter is pushed too
deep and removes rows from the original table and not from the aggreage. It
works correctly when using CTE.
Thanks!
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: wrb@autistici.org
Subject: Re: BUG #13863: Select from views gives wrong results
In-Reply-To: <20160113183558.12989.56904@wrigleys.postgresql.org>
References: <20160113183558.12989.56904@wrigleys.postgresql.org>
* 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