pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Josh Berkus <josh@agliodbs.com>
Cc: Mariusz Czułada <manieq@idea.net.pl>
Cc: pgsql-performance@postgresql.org
Subject: Re: Views with unions
Date: Sun, 16 Feb 2003 10:05:34 -0800 (PST)
Message-ID: <20030216095555.K94589-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <200302151954.33740.josh@agliodbs.com>

On Sat, 15 Feb 2003, Josh Berkus wrote:

> Mariusz,
>
> > While testing multi-select views I found some problems. Here are details. I
> > have 3 tables and I created a view on them:
>
> What version of PostgreSQL are you using?   UNION views optimized extremely
> poorly through 7.2.4; things have been improved in 7.3

Yeah, but I think what he's hoping is that it'll notice that
"key=1 and key=3" would be noticed as a false condition so that it doesn't
scan those tables since a row presumably can't satisify both. The question
would be, is the expense of checking the condition for all queries
greater than the potential gain for these sorts of queries.  In addition,
you'd have to be careful to make it work correctly with operator
overloading, since someone could make operators whose semantics in
cross-datatype comparisons are wierd.




view thread (13+ messages)  latest in thread

Message-ID: <20030216095555.K94589-100000@megazone23.bigpanda.com>
Permalink:  ../20030216095555.K94589-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20030216095555.K94589-100000@megazone23.bigpanda.com

 · 

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-performance@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, josh@agliodbs.com, manieq@idea.net.pl
  Subject: Re: Views with unions
  In-Reply-To: <20030216095555.K94589-100000@megazone23.bigpanda.com>
  References: <200302151954.33740.josh@agliodbs.com> <20030216095555.K94589-100000@megazone23.bigpanda.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