Re: [HACKERS] Replacement Selection

2007-11-26 Thread Timothy J. Kordas
[EMAIL PROTECTED] wrote: I also implemented Replacement Selection (RS) so if I'm able to integrate my RS I hope I would be able to integrate the others too. The existing code implements RS. Tom asked you to describe what improvements you hope to make; I'm confident that he already understands

Re: [HACKERS] hash join hashtable size and work_mem

2007-03-14 Thread Timothy J. Kordas
Tom Lane wrote: If the planner has correctly predicted the number of rows, the table loading should be about NTUP_PER_BUCKET in either regime. Are you sure you aren't just wishing that NTUP_PER_BUCKET were smaller? Maybe I wish NTUP_PER_BUCKET was smaller. But I don't think that's the whole s

[HACKERS] hash join hashtable size and work_mem

2007-03-14 Thread Timothy J. Kordas
in nodeHash.c, the function ExecChooseHashTableSize() uses two different methods for determining the number of buckets to use. the current code looks something like: if (ntuples * tuplesize > work_mem * 1024) buckets = (work_mem * 1024) / (tupsize * 10); else buckets = ntuples