"Maciej Babinski" <maciej+postgres(at)apathy(dot)killer-robot(dot)net> writes:
> Hash join of columns with many null fields is very slow unless the null
> fields are commented out.
I see no bug here. AFAICT your "much faster" query gets that way by
having eliminated all the candidate join rows on the B side.
regards, tom lane