From: Josh Berkus <josh@agliodbs.com>
To: Gordon A. Runkle <gar@integrated-dynamics.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: UNION in a VIEW?
Date: Wed, 04 Apr 2001 16:18:30 -0700
Message-ID: <web-34027@davinci.ethosmedia.com> (raw)
In-Reply-To: <12713.986422401@sss.pgh.pa.us>
Tom, Gordon,
> You're correct, an outer WHERE clause will not be pushed down into
> the member selects of a UNION. (This hasn't really got anything
> to do with whether a VIEW is involved.) I haven't gotten round to
> convincing myself about whether that transformation is always valid,
> or what conditions it needs to be valid. A TODO item for some
> future release...
Hmmm ... I'm pretty used an external WHERE clause being applied to the
output of the view, rather than pushed down into the member selects of
the UNION, in the same way as if the UNION query were a subselect.
Coming from a SQL Server background, I'd actually find the suggested
behavior rather confusing (as well as tough for you guys to implement).
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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-sql@postgresql.org
Cc: josh@agliodbs.com, gar@integrated-dynamics.com
Subject: Re: UNION in a VIEW?
In-Reply-To: <web-34027@davinci.ethosmedia.com>
References: <12713.986422401@sss.pgh.pa.us> <web-34027@davinci.ethosmedia.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