Re: extended operator classes vs. type interfaces

Поиск
Список
Период
Сортировка
От Yeb Havinga
Тема Re: extended operator classes vs. type interfaces
Дата
Msg-id 4BC01A29.9070108@gmail.com
обсуждение исходный текст
Ответ на Re: extended operator classes vs. type interfaces  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas wrote:
> The advantage of specifying a + and a - in the type interface is that
> the unit definition can then be specified as part of the type
> declaration itself.  So you can do:
>
> CREATE TYPE ts_sec AS RANGE OVER timestamp (UNIT = '1s');
> CREATE TYPE ts_min AS RANGE OVER timestamp (UNIT = '1m');
>   
The problem with mixing units with ranges is that units are properties 
of some underlying datatype but not all types on which ranges can be 
defined.

regards,
Yeb Havinga



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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: testing hot standby
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: GSoC - proposal - Materialized Views in PostgreSQL