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

From Tom Lane
Subject Re: Proposal: new function array_init
Date
Msg-id 29182.1212611383@sss.pgh.pa.us
Whole thread Raw
In response to Re: Proposal: new function array_init  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: Proposal: new function array_init  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Re: Proposal: new function array_init  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
"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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Change lock requirements for adding a trigger
Next
From: "Pavel Stehule"
Date:
Subject: Re: Overhauling GUCS