Обсуждение: Re: [HACKERS] Re: Arrays versus 'type constant' syntax

Поиск
Список
Период
Сортировка

Re: [HACKERS] Re: Arrays versus 'type constant' syntax

От
Zeugswetter Andreas IZ5
Дата:
> Hmm.  OK, then, we're stuck with a tradeoff that (fortunately) only
> affects arrays.  Is it better to force subscripted column names to be
> fully qualified "table.column[subscripts]" (the current situation),
> or to allow bare column names to be subscripted at the cost of requiring
> casts from string constants to array types to use the long-winded CAST
> notation (or nonstandard :: notation)?
> 
Yes, me thinks so too.

> I would guess that the cast issue comes up *far* less frequently than
> subscripting, so we'd be better off changing the behavior.  But the
> floor is open for discussion.
> 
Yes.
I have this change implemented and tested here, btw, but I won't
checkit in until I see if there are objections...

I would apply it :-)

Andreas