Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement
От | Jim C. Nasby |
---|---|
Тема | Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement |
Дата | |
Msg-id | 20030507000801.E66185@flake.decibel.org обсуждение исходный текст |
Ответ на | Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Hypothetical suggestions for planner, indexing improvement
|
Список | pgsql-performance |
On Tue, May 06, 2003 at 09:45:07AM -0400, Tom Lane wrote: > "Jim C. Nasby" <jim@nasby.net> writes: > > It would be nice to add support for multi-column IN.. > > WHERE (a, b, c) IN (SELECT a, b, c ...) > > RTFM... As someone pointed out, the documentation says you can't. In this case the docs are wrong (I've added a note). > > BTW, does postgresql handle IN and EXISTS differently? > > Yes. > > > Theoretically if the optimizer was good enough you could transform one > > to the other and not worry about it. > > No. They have different responses to NULLs in the subselect result. They appear to operate the same... what's different? -- Jim C. Nasby (aka Decibel!) jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"
В списке pgsql-performance по дате отправления: