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

From: Teodor Sigaev
To: Tom Lane
Cc: Martijn van Oosterhout , Pgsql Hackers
Subject: Re: User-defined typle similar to char(length) varchar(length)
Date: 2006-08-03 18:24:43
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> or so timeframe ... but feel free to improve it if you can.

I'm not very familiar with yacc/bison, so pls, review attached patch. I may miss
something... It's based on ideas in previous discussions:
http://www.pgsql.ru/db/mw/msg.html?mid=1995063
http://www.pgsql.ru/db/mw/msg.html?mid=2091842

Patch adds support of typmod to any type, support of typmod to format_type().
I partially make typename and function name as different set except forms like
"select TYPE 'asd'" or "select TYPE(N) 'asd'".

Type modifier can be only one integer >=0, however grammar rules allow it to be
list of expressions. It was done for simplify far future :)

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

Attachment Content-Type Size
user_defined_typmod.gz application/x-tar 2.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rocco Altier 2006-08-03 18:27:22 Re: ecpg test suite
Previous Message Andrew Hammond 2006-08-03 18:14:04 Re: Replication Documentation