Re: Indexing UNIONs

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Indexing UNIONs
Дата
Msg-id 200207171719.22224.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: Indexing UNIONs  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Indexing UNIONs
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] why is postgres estimating so badly?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Indexing UNIONs