index with nulls
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: hackers@postgreSQL.org (PostgreSQL-development)
Date: 1998-02-05T17:24:16Z
Lists: pgsql-hackers
As part of yesterday's patch, I fixed a problem with indexing of nulls.
The old code did:
mask = (finalbit << 1) - 1;
if ((~n) & mask)
slow=1;
when it meant to do:
mask = (1 << finalbit) - 1;
if ((~n) & mask)
slow=1;
This may explain some problems people were reporing.
--
Bruce Momjian
maillist@candle.pha.pa.us