Re: Range Types

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Range Types
Дата
Msg-id m2aai7wygb.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: Range Types  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Range Types  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> Ok, but what should the parameter to CREATE TYPE ... AS RANGE be then?
>
> CREATE TYPE foo AS RANGE (
>   SUBTYPE = ...
>   SUBTYPE_BTREE_OPERATOR_CLASS = ...
> );
>
> is a little verbose. Ideas?

I would think
 CREATE TYPE foo AS RANGE (bar) USING (btree_ops);

The USING clause is optional, because you generally have a default btree
opclass for the datatype.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: More extension issues: ownership and search_path
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Sync Rep for 2011CF1