Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT
Дата
Msg-id 87protgclx.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Fixing the representation of ORDER BY/GROUP BY/DISTINCT  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> This is important for making the world safe for hashed DISTINCT, since
> AFAICS we probably can't ever use hashing for DISTINCT ON --- its definition
> is too dependent on the assumption of sorting.

I don't think that's true. We could store the sort key in the hash along with
the resulting tuple and replace the resulting tuple iff the new sort key is
less than the old sort key.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication
support!


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: So, what's the "base dn" in an LDAP URL again?
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: Fixing the representation of ORDER BY/GROUP BY/DISTINCT