Re: CREATE TYPE example needed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CREATE TYPE example needed
Дата
Msg-id 1487.1042671033@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CREATE TYPE example needed  ("Jim Buttafuoco" <jim@spectrumtelecorp.com>)
Список pgsql-general
"Jim Buttafuoco" <jim@spectrumtelecorp.com> writes:
> Thanks for the answer Tom, I did want to write varchar2(n).  Is this
> something special in the code?  Could I somehow muck with the system
> catalogs and copy varchar.

Nope, won't help you.  varchar(n) is hard-wired in the grammar.  Since
there are so few datatypes that have specialized syntax, there's no
provision for extensibility of that syntax.

Short of a lot of cutting-and-pasting in the parser, I don't think
you're going to get it to work.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: postgres on a PDA
Следующее
От: Justin Clift
Дата:
Сообщение: PostgreSQL and Data warehousing question