Re: User-defined typle similar to char(length) varchar(length)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
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:18:53
Message-ID: 25285.1154636333@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> I'm surprised you got the patch so small. Mind you, you didn't do any
> folding in the productions for NUMERIC and CHAR which in the long term
> would probably need to be done.

Yeah, the patch ought to be making the grammar smaller not bigger.

> 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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ron Mayer 2006-08-03 20:35:14 O_NOATIME
Previous Message Martijn van Oosterhout 2006-08-03 19:37:54 Re: User-defined typle similar to char(length) varchar(length)