Re: texteq/byteaeq: avoid detoast [REVIEW]
От
Martijn van Oosterhout
Тема
Re: texteq/byteaeq: avoid detoast [REVIEW]
Дата
Msg-id
20110119082241.GB11804@svana.org
Ответ на
Re: texteq/byteaeq: avoid detoast [REVIEW] (Heikki Linnakangas)
Список
Дерево обсуждения
texteq/byteaeq: avoid detoast Noah Misch <noah@leadboat.com>
texteq/byteaeq: avoid detoast [REVIEW] Andy Colson <andy@squeakycode.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Pavel Stehule <pavel.stehule@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Pavel Stehule <pavel.stehule@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] KaiGai Kohei <kaigai@ak.jp.nec.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Magnus Hagander <magnus@hagander.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast [REVIEW] Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast [REVIEW] Robert Haas <robertmhaas@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast [REVIEW] Robert Haas <robertmhaas@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast [REVIEW] Magnus Hagander <magnus@hagander.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Peter Eisentraut <peter_e@gmx.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast [REVIEW] Peter Eisentraut <peter_e@gmx.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Martijn van Oosterhout <kleptog@svana.org>
Re: texteq/byteaeq: avoid detoast [REVIEW] Robert Haas <robertmhaas@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Peter Eisentraut <peter_e@gmx.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Jim Nasby <jim@nasby.net>
Re: texteq/byteaeq: avoid detoast [REVIEW] Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Pavel Stehule <pavel.stehule@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Itagaki Takahiro <itagaki.takahiro@gmail.com>
Re: texteq/byteaeq: avoid detoast [REVIEW] Pavel Stehule <pavel.stehule@gmail.com>
Re: texteq/byteaeq: avoid detoast Tom Lane <tgl@sss.pgh.pa.us>
Re: texteq/byteaeq: avoid detoast Robert Haas <robertmhaas@gmail.com>
Re: texteq/byteaeq: avoid detoast Noah Misch <noah@leadboat.com>
Re: texteq/byteaeq: avoid detoast Pavel Stehule <pavel.stehule@gmail.com>
Re: texteq/byteaeq: avoid detoast Noah Misch <noah@leadboat.com>
On Tue, Jan 18, 2011 at 10:03:01AM +0200, Heikki Linnakangas wrote: >> That isn't ever going to happen, unless you'd like to give up hash joins >> and hash aggregation on text values. > > You could canonicalize the string first in the hash function. I'm not > sure if we have all the necessary information at hand there, but at > least with some encoding/locale-specific support functions it'd be > possible. This is what strxfrm() was created for. strcoll(a,b) == strcmp(strxfrm(a),strxfrm(b)) Sure there's a cost, the question is only how much and whether it makes hash join unfeasible. I doubt it, since by definition it must be faster than strcoll(). I suppose a test would be interesting. Have a nice day, -- Martijn van Oosterhout http://svana.org/kleptog/ > Patriotism is when love of your own people comes first; nationalism, > when hate for people other than your own comes first. > - Charles de Gaulle
В списке pgsql-hackers по дате отправления