Re: inet type/merge joins - Mailing list pgsql-hackers

From Tom Lane
Subject Re: inet type/merge joins
Date
Msg-id 21067.992191339@sss.pgh.pa.us
Whole thread Raw
In response to Re: inet type/merge joins  (Alex Pilosov <alex@pilosoft.com>)
List pgsql-hackers
Alex Pilosov <alex@pilosoft.com> writes:
>> At some point it'd be nice to use type-specific hash functions for
>> hashjoin --- we support 'em for hash indexes, and I don't see why the
>> join mechanism should not use the same functions.  With that, it'd be
>> possible to overcome this problem by making a hash function that has
>> the same blind spots as the comparison function ...

> I guess the idea is to add a hash function to a catalog of a type
> definition is a good idea?

Either that, or replace the oprcanhash boolean field of pg_operator
by an OID field that links to the appropriate hash function.  Not sure
offhand which is better.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: inet type/merge joins
Next
From: mlw
Date:
Subject: fsync vs fdatasync