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