pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Union strange explain
Date: Fri, 5 Jul 2002 12:17:16 +0200
Message-ID: <005001c2240d$23d176e0$070afea9@GMENDOLA2> (raw)
References: <20020704115011.T19207-100000@megazone23.bigpanda.com>

Stephan  wrote:
> number of rows returned).  I think there was some question about
> whether it was safe to do that optimization (ie,
> is select * from (a union [all] b) where condition
> always the same as
>  select * from a where condition union [all]
>  select * from b where condition
> )

Yes but with a View the condition is always extern.
I'm understanding that I don't have any possibility to
optimize that view, I'm wrong ?


Ciao
Gaetano






view thread (5+ messages)  latest in thread

Message-ID: <005001c2240d$23d176e0$070afea9@GMENDOLA2>
Permalink:  ../005001c2240d$23d176e0$070afea9@GMENDOLA2/
Also on:    postgresql.org/message-id/005001c2240d$23d176e0$070afea9@GMENDOLA2

 · 

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-admin@postgresql.org
  Cc: mendola@bigfoot.com, sszabo@megazone23.bigpanda.com
  Subject: Re: Union strange explain
  In-Reply-To: <005001c2240d$23d176e0$070afea9@GMENDOLA2>
  References: <20020704115011.T19207-100000@megazone23.bigpanda.com> <005001c2240d$23d176e0$070afea9@GMENDOLA2>

* 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