index with nulls

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: hackers(at)postgreSQL(dot)org (PostgreSQL-development)
Subject: index with nulls
Date: 1998-02-05 17:24:16
Message-ID: 199802051724.MAA02488@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(at)candle(dot)pha(dot)pa(dot)us

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-02-05 17:41:44 Re: [HACKERS] Re: atttypmod of 0
Previous Message Zeugswetter Andreas DBT 1998-02-05 17:23:59 Re: atttypmod of 0