Re: Array constructor requires one argument

From: Joe Conway <mail(at)joeconway(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Array constructor requires one argument
Date: 2007-01-09 19:28:53
Message-ID: 45A3ECF5.9030606@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
>
>>On Tue, Jan 09, 2007 at 10:02:09AM -0500, Tom Lane wrote:
>>
>>>Define the data type of
>>>SELECT ARRAY[];
>
>
>>The same type as:
>>SELECT NULL;
>
>
> Hardly, because whatever type NULL has, it's not an array type.

Here's a link to the initial discussion on this topic:

http://archives.postgresql.org/pgsql-hackers/2003-06/msg01195.php

Unless we can convince ourselves that array-of-UNKNOWN is not dangerous,
I don't think this is easily solved.

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Hedstrom 2007-01-09 19:38:15 ERROR: invalid memory alloc request size, and others
Previous Message Magnus Hagander 2007-01-09 19:20:58 Re: is there a tracking trace tool like the "SQL Analizer"