From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Teodor Sigaev <teodor(at)sigaev(dot)ru>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: User-defined typle similar to char(length) varchar(length) |
Date: | 2006-08-03 20:49:54 |
Message-ID: | 20060803204954.GF20080@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Aug 03, 2006 at 04:18:53PM -0400, Tom Lane wrote:
> > Also, there's the issue of converting
> > the arguments to a typmod, in the long term it'd have to be
> > user-defined per type.
>
> I think we could legislate that the stored typmod is the same as what
> the user sees (and can't be negative). The fact that it's different
> for some of the built-in types is a historical artifact that I'd love
> to get rid of.
But that makes NUMERIC(x,y) impossible to represent. That probably ok I
guess. I was just wondering if it would be reasonable to allow users to
create a currency type whose precision can be specified the same way as
for numeric.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Mayer | 2006-08-03 20:52:28 | Re: O_NOATIME |
Previous Message | Tom Lane | 2006-08-03 20:38:24 | Re: O_NOATIME |