>I don't think this is safe - the rows could be released while you are rehashing causing you to access invalid pointers.

Hm, yes I agree - I'll look at again. Goes to show my large dedup stress test, didn't expose.