Re: WIP: RangeTypes - Mailing list pgsql-hackers

From David Fetter
Subject Re: WIP: RangeTypes
Date
Msg-id 20110117212331.GE18561@fetter.org
Whole thread Raw
In response to Re: WIP: RangeTypes  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On Mon, Jan 17, 2011 at 01:09:26PM -0800, Jeff Davis wrote:
> When defining generic range functions, there is quite a bit of extra
> complexity needed to handle special cases.
> 
> The special cases are due to:
>  * empty ranges
>  * ranges with infinite boundaries
>  * ranges with NULL boundaries
>  * ranges with exclusive bounds (e.g. "(" or ")").
> 
> Infinite bounds, and exclusive bounds can both be handled somewhat
> reasonably, and the complexity can be somewhat hidden.  Empty ranges
> are a special case, but can be handled at the top of the generic
> function in a straightforward way.
> 
> NULL bounds, however, have been causing me a little frustration.
> [Explanation and illustrations].

In that case, let's leave them out for this cut.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: texteq/byteaeq: avoid detoast [REVIEW]
Next
From: Dan Ports
Date:
Subject: Re: SSI patch version 12