Re: Proposal: new function array_init - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Proposal: new function array_init
Date
Msg-id 4846FCD3.5030108@dunslane.net
Whole thread Raw
In response to Re: Proposal: new function array_init  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Proposal: new function array_init
Next
From: Tom Lane
Date:
Subject: Re: Proposal: new function array_init