Re: Range Types - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Range Types
Date
Msg-id m2aai7wygb.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Range Types  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Range Types
List 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 by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: More extension issues: ownership and search_path
Next
From: Robert Haas
Date:
Subject: Re: Sync Rep for 2011CF1