Andrew Dunstan <[EMAIL PROTECTED]> writes: > Alvaro Herrera wrote: >> Here, the culprits are tfind() and tsearch(). These apparently aren't >> "portable enough", but they seem to exist on all other platforms. Maybe >> we could come up with a replacement on Windows? Are there simple >> btree/hash table functions on Windows, with a similar API?
> The library found at > http://sourceforge.net/project/shownotes.php?release_id=209006 seems to > have what is needed, but I really don't think we can impose that extra > requirement at this stage of the release cycle, do you? ISTM either we > need to revert this or change it to use an API that is already known to > be supported. Yeah, I was wondering about those functions too when I looked at the patch. ISTM that this is overkill anyway; I cannot imagine anyone writing a pgbench script with more than a few variables. So I'd recommend ripping out the <search.h> stuff altogether and just making a linear search through a simple array of variables. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match