From: Bill MacArthur <webmaster@dhs-club.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7604: adding criteria to a query against a view in 9.2 expands the results instead of constraining them
Date: Mon, 15 Oct 2012 14:20:35 -0400
Message-ID: <507C53F3.70606@dhs-club.com> (raw)
In-Reply-To: <13773.1350317896@sss.pgh.pa.us>
References: <E1TNn6X-0003vO-1x@wrigleys.postgresql.org>
<13773.1350317896@sss.pgh.pa.us>
On 10/15/2012 12:18 PM, Tom Lane wrote:
> webmaster@dhs-club.com writes:
>> vip_declines_mailers_base is another VIEW that merely adds some criteria to
>> limit the result set of the 'base' VIEW. In versions 9.0 and back it did
>> just that. After upgrading to 9.2, the criteria actually expand the result
>> set.
>
> This doesn't seem to match any of the known bugs in 9.2, so I'm afraid
> there's no help for it: you need to create a self-contained test case.
>
> regards, tom lane
>
Tom, in preparation for a test case I created a new schema (testcase) and copied 6 tables to that, including only the columns significant to enable the VIEWs to be created. I took the 3 VIEWs involved and tweaked them into the new schema (just renamed to testcase.viewname and referencing testcase.relation). However, when run from in there, the results are as expected rather than erroneous. The live data and VIEWs still produce erroneous results. Any clues??
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: webmaster@dhs-club.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #7604: adding criteria to a query against a view in 9.2 expands the results instead of constraining them
In-Reply-To: <507C53F3.70606@dhs-club.com>
References: <E1TNn6X-0003vO-1x@wrigleys.postgresql.org> <13773.1350317896@sss.pgh.pa.us> <507C53F3.70606@dhs-club.com>
* 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