Re: Indexing UNIONs

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Indexing UNIONs
Date: 2002-07-18 00:19:22
Message-ID: 200207171719.22224.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Bruno,

> I think you might be able to do this using (one sided) outer joins of the
event
> table to the Case and Trial Group tables. The join rules will need to work
for
> exactly one of the two tables. You probably will want to use case statements
in
> the select list to pick values from the right table.

Yeah, I'm doing that in some places. It just doesn't work for all queries.
COALESCE() is my friend.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2002-07-18 02:29:01 Re: Indexing UNIONs
Previous Message Peter Eisentraut 2002-07-17 22:33:07 Re: Seeding