Re: array functions - request for opinions (was Re: [PATCHES]

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: array functions - request for opinions (was Re: [PATCHES]
Date: 2003-05-27 03:22:54
Message-ID: 3ED2DA0E.3050206@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2003-05-27 03:50:32 SIGSEGV on cvs tip/7.3.2
Previous Message Tom Lane 2003-05-27 03:15:02 Re: ERROR: Memory exhausted in AllocSetAlloc(188)