Re: Status of DISTINCT-by-hashing work
От | Asko Oja |
---|---|
Тема | Re: Status of DISTINCT-by-hashing work |
Дата | |
Msg-id | ecd779860808050835g1107b22ar73a77e6b09c2b6fb@mail.gmail.com обсуждение исходный текст |
Ответ на | Status of DISTINCT-by-hashing work (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
<div dir="ltr">Sounds very much like 80% 20% story. 80% that was easy to do is done and now 20% that is complex and progressis slow is left to be done. Sounds very familiar from the comment in plan cache invalidation :)<br /><br /><div class="gmail_quote">OnTue, Aug 5, 2008 at 5:51 PM, Tom Lane <span dir="ltr"><<a href="mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us</a>></span>wrote:<br /><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I've pretty much finishedthe project I got a bee in my bonnet about<br /> last week, which is to teach SELECT DISTINCT how to (optionally)use<br /> hashing for grouping in the same way that GROUP BY has been able to do<br /> for awhile.<br /><br />There are still two places in the system that hard-wire the use of<br /> sorting for duplicate elimination:<br /><br />* Set operations (UNION/INTERSECT/EXCEPT)<br /><br /> * Aggregate functions with DISTINCT<br /><br /> I'm thinking of tryingto fix set operations before I leave this topic,<br /> but I'm not sure it's worth the trouble to change DISTINCT aggregates.<br/> They'd be a lot more work (since there's no executor infrastructure<br /> in place that could be used) andthe return on investment seems low.<br /><br /> Comments?<br /><br /> regards, tom lane<br /><fontcolor="#888888"><br /> --<br /> Sent via pgsql-hackers mailing list (<a href="mailto:pgsql-hackers@postgresql.org">pgsql-hackers@postgresql.org</a>)<br/> To make changes to your subscription:<br/><a href="http://www.postgresql.org/mailpref/pgsql-hackers" target="_blank">http://www.postgresql.org/mailpref/pgsql-hackers</a><br/></font></blockquote></div><br /></div>
В списке pgsql-hackers по дате отправления: