Re: CAST function for user defined type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CAST function for user defined type
Date: 2007-01-22 15:57:57
Message-ID: 18606.1169481477@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com> writes:
> I've created my own type: y_octet_16. Now I'm trying to create a CAST
^^^^^^^^^^

> % INSERT INTO bt( name, val ) VALUES
> ( 'aaa', encode( y_uuid_generate(), 'hex' )::y_byte_16 );
> ERROR: type "y_byte_16" does not exist
^^^^^^^^^

Are you sure this isn't just pilot error?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Fitzpatrick 2007-01-22 16:05:49 MSSQL/ASP migration
Previous Message Heikki Linnakangas 2007-01-22 15:56:20 Re: [HACKERS] Autovacuum Improvements