Re: Range Type constructors

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: Range Type constructors
Дата
Msg-id AANLkTinrohQ1cbRYR6HiLYrTgcFM2RXjp017aSNPZyWD@mail.gmail.com
обсуждение исходный текст
Ответ на Range Type constructors  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Range Type constructors  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
On Wed, Feb 9, 2011 at 14:50, Jeff Davis <pgsql@j-davis.com> wrote:
> 1.
> The obvious constructor would be:
>  range(1, 10)
> But is that [1, 10), (1, 10], (1, 10), or [1, 10]? We need to support
> all 4, and it's not obvious how to do that easily.

here is the same issue in table partitioning. Also, We might use the
syntax for our partitioning in the future.  Just for reference,
DB2 uses EXCLUSIVE and INCLUSIVE keywords to specify boundaries.
 CREATE TABLE ... PARTITION BY RANGE (...)   (STARTING 0 EXCLUSIVE ENDING 100 INCLUSIVE)

http://publib.boulder.ibm.com/infocenter/db2luw/v9r8/index.jsp?topic=/com.ibm.db2.luw.sql.ref.doc/doc/r0000927.html

I'm not sure it is the best syntax, but at least it's easy to read
for beginners and works with parentheses completion by text editors.

--
Itagaki Takahiro


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Basic Recovery Control functions for use in Hot Standby. Pause,
Следующее
От: Noah Misch
Дата:
Сообщение: Re: SQL/MED - file_fdw