invalid type internal size -1 - Mailing list pgsql-hackers

From Gaetano Mendola
Subject invalid type internal size -1
Date
Msg-id c82iuo$js4$1@floppy.pyrenet.fr
Whole thread Raw
Responses Re: invalid type internal size -1
Re: invalid type internal size -1
List pgsql-hackers
I all,
I'm tryng to declare my email type.
I think I have to do it in this way:

create type email ( INPUT = email_in,                    OUTPUT = email_out,                    RECEIVE = email_recv,
                SEND = email_send,                    INTERNALLENGTH = VARIABLE,                    PASSEDBYVALUE = f,
                 ALIGNMENT = int4 );
 


however I get:
ERROR: invalid type internal size -1

In the doc is written:

Base data types can be fixed-length, in which case internallength is a positive integer, or variable 
length, indicated by setting internallength to VARIABLE. (Internally, this is represented by setting 
typlen to -1.)


I'm doing this on Postgres 7.4.1


Am I missing something ?

Regards
Gaetano Mendola


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: relcache refcount
Next
From: Tom Lane
Date:
Subject: Re: Bogus permissions display in 7.4