Re: Proposal: stand-alone composite types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Proposal: stand-alone composite types
Дата
Msg-id 29150.1028777152@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Proposal: stand-alone composite types  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> I'm working on stand-alone composite types and running into a 
> reduce/reduce problem with the grammer. Any suggestions would be 
> appreciated. Here's what I have:

> DefineStmt:
>    | CREATE TYPE_P qualified_name AS
>      '(' TableFuncElementList ')'

Use any_name, not qualified_name.  As-is, you're forcing the parser
to try to distinguish the two forms of CREATE TYPE before it can
see anything that would tell the difference.

In hindsight I think it was a mistake to set up RangeVar/qualified_name
as a distinct reduction path from non-relation qualified names ---
we'd have been better off using a single production and a uniform
intermediate representation.  But I haven't had time to investigate
simplifying the grammar that way.
        regards, tom lane


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: python patch
Следующее
От: "J. R. Nield"
Дата:
Сообщение: Re: PITR, checkpoint, and local relations