Re: array functions - request for opinions (was Re: [PATCHES] - Mailing list pgsql-hackers

From Joe Conway
Subject Re: array functions - request for opinions (was Re: [PATCHES]
Date
Msg-id 3ED2DA0E.3050206@joeconway.com
Whole thread Raw
In response to Re: array functions - request for opinions (was Re: [PATCHES] array  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>>regression=# select array[];
>>ERROR:  parser: parse error at or near "]" at character 14
> 
> Only if you can specify what type it has.  This seems to get back
> to our off-list discussion about what to do with array of unknown.
> 

Yeah, without an unknown[] data type, I think a special case hack would 
be needed even for the array[]::int4[] example, because the coercion to 
int4[] happens too late.

I guess '{}'::arraytype[] will have to do for now.

Joe




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: array functions - request for opinions (was Re: [PATCHES] array
Next
From: Joe Conway
Date:
Subject: SIGSEGV on cvs tip/7.3.2