From: | Shachar Shemesh <psql(at)shemesh(dot)biz> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Custom type with width specifier |
Date: | 2004-06-27 14:25:43 |
Message-ID: | 40DED8E7.3090809@shemesh.biz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 table it fails. This only happens when I try to give maximum
length to the type. So the command:
create table foo ( bar varcharci );
succeeds, but
create table foo (bar varcharci(12) );
fails.
What do I need to do in order to get the width specifier into my type?
I'm not even sure what function is called in order to say that the type
needs a width specifier.
Many thanks
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-06-27 14:42:46 | Re: Fixing pg_dump |
Previous Message | Christopher Kings-Lynne | 2004-06-27 08:22:05 | Re: Fixing pg_dump |