From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Review: B-Tree emulation for GIN |
Date: | 2009-02-11 13:38:25 |
Message-ID: | 4992D4D1.9090600@sigaev.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Looking through the code again, gin_compare_prefix_##type looks a little
> confusing.
>
> Is there a reason for using:
> (data->strategy == BTLessStrategyNumber ||
> data->strategy == BTLessEqualStrategyNumber ) ?
> PointerGetDatum(data->datum) : a
> rather than just using:
> PointerGetDatum(data->datum)
Added comments:
/*
* Datum a is a value from extract_query method and for BTLess*
* strategy it is a left-most value. So, use original datum from
* QueryInfo to decide stop scanning on not. Datum b is always
* from index.
*/
> Also, it might be a little less confusing if you used two separate
> variables rather than using "res" for two purposes.
done
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/
Attachment | Content-Type | Size |
---|---|---|
btree_gin-0.10.gz | application/x-tar | 14.9 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Ana Carolina Brito de Almeida | 2009-02-11 13:54:37 | Copy PlannerInfo structure |
Previous Message | Gianni Ciolli | 2009-02-11 13:24:31 | Re: Optimization rules for semi and anti joins |