Richard van den Berg <[EMAIL PROTECTED]> writes:
> Tom Lane wrote:
>> Perhaps you are incurring a datatype conversion cost? 

> Not that I can tell.

No, apparently not.  Hmm ... timestamp_cmp_internal is just a couple of
isnan() checks and one or two floating-point compares.  Should be pretty
dang cheap.  Unless isnan() is ridiculously expensive on your hardware?
More likely there is some bottleneck that we are not thinking of.

Are the tables in question particularly wide (many columns)?

>> which leads me to question what exactly is happening in those
>> comparisons.

> Your guess is as good as mine (actually, yours is much better). I can
> put together a reproducable test case if you like..

I'm thinking it would be interesting to look at a gprof profile of the
nestloop case.  If you can rebuild with profiling and get one, that
would be fine, or you can make up a test case that shows the same slow
joining behavior.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to