Re: Extending PostGreSQL/PostGIS with an abstract data type. - Mailing list pgsql-general

From Craig Ringer
Subject Re: Extending PostGreSQL/PostGIS with an abstract data type.
Date
Msg-id 4BBDC7DE.6080603@postnewspapers.com.au
Whole thread Raw
In response to Extending PostGreSQL/PostGIS with an abstract data type.  (donia zheni <zheni_donia@yahoo.fr>)
List pgsql-general
donia zheni wrote:

> And if it's defined with "typedef", must all operations be defined also
> in C or can some functions be defined with plpgsql?

If you want a new data type that's only accessible using functions and
operators defined to operate on it, you must write it in C.

If you wanted to use PL/PgSQL to implement some operators, you'd have to
expose innards of the data type at the SQL level. Since you explicitly
do not want to do this, you cannot use PL/PgSQL.

--
Craig Ringer

pgsql-general by date:

Previous
From: Michał Pawlikowski
Date:
Subject: Re: Grant column level permissions
Next
From: Ognjen Blagojevic
Date:
Subject: [offtopic] How do you name a table...