Re: [HACKERS] PC Week Labs benchmark results

Поиск
Список
Период
Сортировка
От Don Baccus
Тема Re: [HACKERS] PC Week Labs benchmark results
Дата
Msg-id 3.0.1.32.20000204082629.00fd8860@mail.pacifier.com
обсуждение исходный текст
Ответ на Re: [HACKERS] PC Week Labs benchmark results  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-hackers
At 04:38 AM 2/4/00 -0500, Mike Mascari wrote:

>That's always been annoying, although it can be simulated
>easily with:
>
>SELECT t1.x, t2.y 
>FROM t1, t2
>WHERE t1.x = t2.x
>UNION
>SELECT t1.x, NULL
>FROM t1 WHERE NOT EXISTS ( SELECT t2.x FROM t2 WHERE t1.x =
>t2.x );

SOME - but not all - outer joins can be simulated with this
trick.  Others require subselects in the target list, etc.

And the union form gets really messy when a query includes more
than one outer join.




- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: [HACKERS] PC Week Labs benchmark results
Следующее
От: Don Baccus
Дата:
Сообщение: Re: [HACKERS] Re: [SQL] Proposed Changes to PostgreSQL