Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)
Дата
Msg-id 4EB19A1B.3070205@enterprisedb.com
обсуждение исходный текст
Ответ на Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
On 01.11.2011 06:33, Jeff Davis wrote:
> On Mon, 2011-10-24 at 15:05 +0400, Alexander Korotkov wrote:
>
>> I think implementing subtype_diff for each datatype is ok.  We could
>> implement some universal function based on minus operator and casting
>> to double precision. But such solution might be unacceptable in
>> both predictability (operator and casting function might do not the
>> things we expect) and performance.
>>
> Done.

Thanks, I'm looking into this now.

> +       else if (lower1.infinite || upper1.infinite)
> +               length1 = 1.0/0.0;

That seems wrong. I take it that the point is to set length1 to infinity?

PS. I note the docs still refer to subtype_float. I'll fix that before 
committing.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: superusers are members of all roles?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)