Re: Opaque not working as documented - Mailing list pgsql-novice

From Tom Lane
Subject Re: Opaque not working as documented
Date
Msg-id 28653.1024692872@sss.pgh.pa.us
Whole thread Raw
In response to Opaque not working as documented  (Steven Blundy <sblundy@CLEMSON.EDU>)
List pgsql-novice
Steven Blundy <sblundy@CLEMSON.EDU> writes:
> Changing opaque to text results in the CREATE FUNCTION statements
> working, while the CREATE TYPE statements throw a fit.

Yup.  You cannot use SQL functions to write I/O operations for a new
datatype, because the I/O converters run at a lower logical level than
SQL.  The only way to code them is in C.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tien Tran Ngoc
Date:
Subject: ISAM access in PostgreSQL?
Next
From: Eric Naujock
Date:
Subject: Reliable and scrptable backup to Postgresql databases.