Grab some low-hanging fruit in the new hash index build code.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2008 03:45:36 +0000 (03:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2008 03:45:36 +0000 (03:45 +0000)
commitee4dfa339b74a5aaf02af2ca9f805218734be654
tree60dcf70657d04e663fb14bb1d8f4ed905c50d856
parentd6f419a5c995c16be8ee763e2f6ea8d23ff535b1
Grab some low-hanging fruit in the new hash index build code.
oprofile shows that a nontrivial amount of time is being spent in
repeated calls to index_getprocinfo, which really only needs to be
called once.  So do that, and inline _hash_datum2hashkey to make it
work.
src/backend/utils/sort/tuplesort.c