Re: [HACKERS] Custom type with width specifier

2004-06-29 Thread Hannu Krosing
On P, 2004-06-27 at 17:53, Tom Lane wrote: Shachar Shemesh [EMAIL PROTECTED] writes: What do I need to do in order to get the width specifier into my type? Rewrite the grammar. Width modifiers are only supported on types that are hard-wired into the grammar, mainly because they look way

[HACKERS] Custom type with width specifier

2004-06-27 Thread Shachar Shemesh
Hi list, I'm trying to create a varchar clone (called varcharci). I have defined new functions called varcharciin, varcharciout, varcharcisend and recv, using the varcharin etc. definitions (i.e. - builtin functions). I defined the type. Everything works, except that when I try to create a

Re: [HACKERS] Custom type with width specifier

2004-06-27 Thread Tom Lane
Shachar Shemesh [EMAIL PROTECTED] writes: What do I need to do in order to get the width specifier into my type? Rewrite the grammar. Width modifiers are only supported on types that are hard-wired into the grammar, mainly because they look way too much like function calls to be distinguished

Re: [HACKERS] Custom type with width specifier

2004-06-27 Thread Peter Eisentraut
Shachar Shemesh wrote: What do I need to do in order to get the width specifier into my type? This is not possible with user-defined types. ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster