Re: Indexing UNIONs - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Indexing UNIONs
Date
Msg-id 200207171719.22224.josh@agliodbs.com
Whole thread Raw
In response to Re: Indexing UNIONs  (Bruno Wolff III <bruno@wolff.to>)
Responses Re: Indexing UNIONs  (Bruno Wolff III <bruno@wolff.to>)
List 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 BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] why is postgres estimating so badly?
Next
From: Bruno Wolff III
Date:
Subject: Re: Indexing UNIONs