Re: [GENERAL] Trying to add a type modifier to user created type

2010-02-18 Thread Yeb Havinga
Carsten Kropf wrote: Hi *, I have the following problem: I wanted to add a new type that supports modifiers (comparable to numeric/varchar). I succeeded in adding the type modifier functions to my new type. These methods are called and the modifier is set. However the modifiers are not

Re: [GENERAL] Trying to add a type modifier to user created type

2010-02-18 Thread Tom Lane
Yeb Havinga yebhavi...@gmail.com writes: Carsten Kropf wrote: I wanted to add a new type that supports modifiers (comparable to numeric/varchar). You need to add a cast from the type to itself, e.g. The CREATE CAST reference page has the gory details here. regards,

Re: [GENERAL] Trying to add a type modifier to user created type

2010-02-18 Thread Carsten Kropf
Thanks a lot so far, got it working with the cast. Probably the documentation about create type where the type modifiers are described should be extended in order to find that. Thanks and regards Carsten Kropf Am 18.02.2010 um 16:46 schrieb Tom Lane: Yeb Havinga yebhavi...@gmail.com