Skip site navigation (1) Skip section navigation (2)

Re: Views with unions

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Mariusz Czułada <manieq(at)idea(dot)net(dot)pl>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: Views with unions
Date: 2003-02-16 18:05:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
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.

In response to


pgsql-performance by date

Next:From: Tom LaneDate: 2003-02-16 18:51:18
Subject: Re: Views with unions
Previous:From: Mariusz CzuładaDate: 2003-02-16 08:19:06
Subject: Re: Views with unions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group