index with nulls - Mailing list pgsql-hackers

From Bruce Momjian
Subject index with nulls
Date
Msg-id 199802051724.MAA02488@candle.pha.pa.us
Whole thread Raw
List 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

pgsql-hackers by date:

Previous
From: Zeugswetter Andreas DBT
Date:
Subject: Re: atttypmod of 0
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page