Re: Proposal: new function array_init

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Proposal: new function array_init
Дата
Msg-id 4846FCD3.5030108@dunslane.net
обсуждение исходный текст
Ответ на Re: Proposal: new function array_init  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane wrote:
> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
>   
>> 2008/6/4 Tom Lane <tgl@sss.pgh.pa.us>:
>>     
>>> Huh?  That's completely nonsensical ... where will you determine the
>>> type of the array, if you don't have a sample element?
>>>       
>
>   
>> it is nonsens in current postgres. But null array is castable to anyarray no?
>>     
>
> If you mean an array of nulls, it still has to have an element type.
>
>             
>   

Right, and since the fill element is thus not optional it should be in a 
fixed position in the argument list, ISTM, which can only mean it would 
come first.

cheers

andrew


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

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Proposal: new function array_init
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: new function array_init