Re: [HACKERS] qsort again (was Re: Strange Create Index
От
PFC
Тема
Re: [HACKERS] qsort again (was Re: Strange Create Index
Дата
Msg-id
op.s42829s9cigqcu@apollo13
Ответ на
Список
Дерево обсуждения
Strange Create Index behaviour Gary Doades <gpd@gpdnet.co.uk>
Re: Strange Create Index behaviour Simon Riggs <simon@2ndquadrant.com>
Re: Strange Create Index behaviour Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange Create Index behaviour Simon Riggs <simon@2ndquadrant.com>
Re: Strange Create Index behaviour Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange Create Index behaviour Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange Create Index behaviour Gary Doades <gpd@gpdnet.co.uk>
Re: Strange Create Index behaviour Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange Create Index behaviour Simon Riggs <simon@2ndquadrant.com>
qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index Neil Conway <neilc@samurai.com>
Re: [HACKERS] qsort again Florian Weimer <fw@deneb.enyo.de>
Re: [HACKERS] qsort again Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again Sven Geisler <sgeisler@aeccom.com>
Re: [HACKERS] qsort again Ron <rjpeace@earthlink.net>
Re: qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Poor performance o "Craig A. James" <cjames@modgraph-usa.com>
Re: Poor performance o Tom Lane <tgl@sss.pgh.pa.us>
Re: Poor performance o "Craig A. James" <cjames@modgraph-usa.com>
Re: Poor performance o Tom Lane <tgl@sss.pgh.pa.us>
Re: Poor performance o "Jim C. Nasby" <jnasby@pervasive.com>
Re: qsort again (was Re: Strange Create Index behaviour) Gary Doades <gpd@gpdnet.co.uk>
Re: qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index "Gary Doades" <gpd@gpdnet.co.uk>
Re: [HACKERS] qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index "Gary Doades" <gpd@gpdnet.co.uk>
Re: qsort again (was Re: Strange Create Index behaviour) Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: qsort again (was Re: Strange Create Index Ron <rjpeace@earthlink.net>
Re: qsort again (was Re: Strange Create Index behaviour) Tom Lane <tgl@sss.pgh.pa.us>
Re: qsort again (was Re: Strange Create Index Ron <rjpeace@earthlink.net>
Re: qsort again (was Re: Strange Create Index "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Re: qsort again (was Re: Strange Create Index Neil Conway <neilc@samurai.com>
Re: qsort again (was Re: Strange Create Index Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Index Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again (was Re: Strange Create Scott Lamb <slamb@slamb.org>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Ragnar <gnari@hive.is>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Ragnar <gnari@hive.is>
Re: [HACKERS] qsort again (was Re: Strange Create "Gregory Maxwell" <gmaxwell@gmail.com>
Re: [HACKERS] qsort again (was Re: Strange Create Markus Schaber <schabi@logix-tt.com>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again (was Re: Strange Create Ron <rjpeace@earthlink.net>
Re: [HACKERS] qsort again (was Re: Strange Create PFC <lists@peufeu.com>
Re: qsort again (was Re: Strange Create Index Markus Schaber <schabi@logix-tt.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index "Jonah H. Harris" <jonah.harris@gmail.com>
Re: qsort again (was Re: Strange Create Index "Craig A. James" <cjames@modgraph-usa.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index Mark Lewis <mark.lewis@mir3.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again (was Re: Strange Create Index Markus Schaber <schabi@logix-tt.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Greg Stark <gsstark@mit.edu>
Re: [HACKERS] qsort again (was Re: Strange Create Index Mark Lewis <mark.lewis@mir3.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index David Lang <dlang@invendra.net>
Re: [HACKERS] qsort again (was Re: Strange Create Index Mark Lewis <mark.lewis@mir3.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] qsort again (was Re: Strange Create Index Markus Schaber <schabi@logix-tt.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Scott Lamb <slamb@slamb.org>
Re: [HACKERS] qsort again (was Re: Strange Create Index Martijn van Oosterhout <kleptog@svana.org>
Re: [HACKERS] qsort again (was Re: Strange Create Index PFC <lists@peufeu.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index "Steinar H. Gunderson" <sgunderson@bigfoot.com>
Re: [HACKERS] qsort again (was Re: Strange Create Index Markus Schaber <schabi@logix-tt.com>
Re: Strange Create Index behaviour Gary Doades <gpd@gpdnet.co.uk>
Re: Strange Create Index behaviour Gary Doades <gpd@gpdnet.co.uk>
Re: Strange Create Index behaviour Gary Doades <gpd@gpdnet.co.uk>
> It seems that instead of maintaining a different sorting code path for > each data type, you could get away with one generic path and one > (hopefully faster) path if you allowed data types to optionally support > a 'sortKey' interface by providing a function f which maps inputs to 32- > bit int outputs, such that the following two properties hold: Looks like the decorate-sort-undecorate pattern, which works quite well. Good idea. I would have said a 64 bit int, but it's the same idea. However it won't work for floats, which is a pity, because floats fit in 64 bits. Unless more types creep in the code path (which would not necessarily make it that slower). As for text, the worst case is when all strings start with the same 8 letters, but a good case pops up when a few-letter code is used as a key in a table. Think about a zipcode, for instance. If a merge join needs to sort on zipcodes, it might as well sort on 64-bits integers... By the way, I'd like to declare my zipcode columns as SQL_ASCII while the rest of my database is in UNICODE, so they are faster to index and sort. Come on, MySQL does it... Keep up !
В списке pgsql-performance по дате отправления