Re: HASH index method not correctly handling NULL text

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
Cc: pgsql-general(at)postgresql(dot)org, david(dot)madore(at)ens(dot)fr
Subject: Re: HASH index method not correctly handling NULL text
Date: 2002-02-03 03:09:38
Message-ID: 21910.1012705778@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Neil Conway <nconway(at)klamath(dot)dyndns(dot)org> writes:
>> The warning should be suppressed for hash indexes, since they don't
>> include nulls. I believe this is fixed in 7.2.

> Is there a reason why hash indexes don't include NULLs?

Nobody's got around to fixing them to do so. AFAICS it should be easy
enough to do; just assign a fixed hash code (zero, likely) for NULLs,
and adjust the comparison routines to be NULL-conscious.

If you want to work on the hash index code, feel free. My own vision
of things says that we should put our effort into the btree and GIST
index types, which really cover the scalar and multidimensional cases
pretty effectively. If we had unlimited manpower then it'd be worth
working on hash and rtree too, but I'd be just as happy leaving them
to rot quietly.

But, as always, Postgres is a volunteer project, and the work that
gets done is whatever someone is interested/motivated to work on.
So if improving hash indexes is what floats your boat at the moment,
then by all means go for it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-02-03 03:46:31 Re: HASH index method not correctly handling NULL text
Previous Message Neil Conway 2002-02-03 01:23:21 Re: HASH index method not correctly handling NULL text