Re: 9.2 Range Types

From: David Johnston <polobo(at)yahoo(dot)com>
To: Dave Bettin <me(at)davebettin(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: 9.2 Range Types
Date: 2012-05-30 20:00:07
Message-ID: 9AD05441-4B78-4EAB-A2A4-4491701017BD@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In theory...(not running 9.2 that I could test):

{"[0,5999)","[7000,7999)"}::int4range[]

Not sure the exact type name for the int4range. The double quotes are necessary. The curly-braces surround the whole array and elements are separated by commas.

David J.

On May 30, 2012, at 14:59, Dave Bettin <me(at)davebettin(dot)com> wrote:

> Does 9.2 support an array of ranges? For example, I have the following int4ranges => [0,5999) and [7000, 7999) which needs to be associated with the same record.
>
> Thanks,
> Dave

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Bettin 2012-05-30 20:02:51 Re: 9.2 Range Types
Previous Message John Shott 2012-05-30 19:18:40 Re: Postgres no longer starts