Skip site navigation (1) Skip section navigation (2)

Re: extended operator classes vs. type interfaces

From: Yeb Havinga <yebhavinga(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: extended operator classes vs. type interfaces
Date: 2010-04-09 11:55:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Robert Haas wrote:
> Under the first type [4pm,5pm) =
> [4pm,4:59:59pm], while under the second [4pm,5pm) = [4pm,4:59pm].
> Thoughts?
The examples with units look a lot like the IVL<PQ> datatype from HL7, 

About a type interface, the HL7 spec talks about promotion from e.g. a 
timestamp to an interval (hl7 speak for range) of timestamps (a range), 
and demotion for the back direction. Every 'quantity type', which is any 
type with a (possibly partially) lineair ordered domain, can be promoted 
to an interval of that type. In PostgreSQL terms, this could perhaps 
mean that by 'tagging' a datatype as a lineair order, it could 
automatically have a range type defined on it, like done for the array 
types currently.

Yeb Havinga

In response to


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2010-04-09 11:58:18
Subject: Re: Win32 timezone matching
Previous:From: Magnus HaganderDate: 2010-04-09 11:52:38
Subject: Re: Win32 timezone matching

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group