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

Re: WIP: RangeTypes

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Subject: Re: WIP: RangeTypes
Date: 2011-01-30 22:52:01
Message-ID: 1296427921.11513.628.camel@jdavis (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Another updated patch.


  * Full GiST support
    - Thanks to Alexander Korotkov for sending me a new picksplit
algorithm for my "temporal" project on pgfoundry. I modified it for use
with range types, including a (hopefully) intelligent way of handling
empty and unbounded ranges.

  * Quite a few tests added, some cleanup done

Open items:

  * naming issues:
    - period -> tsrange ?
    - periodtz -> tstzrange ?
    - intrange -> int4range
  * add int8range
  * Documentation improvements
    - Data Types section
  * Thom Brown and Tom Lane pointed out that the type inferencing
    should be able to promote int4 to numeric for queries like:
      select '[18,20]'::numrange @> 19;
  * Should the SQL function length(), which relies on polymorphic "-",
    be marked immutable, stable, or volatile?
  * representation or alignment issues
  * parser should be improved to handle spaces and quoting better
  * Should btree_gist be pulled into core to make it easier to use 
    exclusion constraints with range types?
  * Typmod (optional)

	Jeff Davis

Attachment: rangetypes-20110130.patch.gz
Description: application/x-gzip (37.8 KB)

In response to


pgsql-hackers by date

Next:From: Robert HaasDate: 2011-01-30 22:53:39
Subject: Re: Review: Fix snapshot taking inconsistencies
Previous:From: Tom LaneDate: 2011-01-30 22:47:07
Subject: Re: autogenerating error code lists (was Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED.)

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