Re: So what's an "empty" array anyway?

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: So what's an "empty" array anyway?
Date: 2008-10-21 19:50:58
Message-ID: 0887548F-59E3-467C-8BCA-C7A23DDFDC35@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Oct 21, 2008, at 12:08, Simon Riggs wrote:

> Please remove zero-dimension arrays.
>
> The number of dimensions of an empty array really ought to be NULL, or
> if we fix it to be non-NULL then 1+. Zero just makes a weird case
> for no
> reason. An empty string only makes sense in the context of that
> particular function, it doesn't really help with other maths.

If we got rid of zero dimension arrays, how would I declare a new
empty array in a PL/pgSQL function?

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Chernow 2008-10-21 20:00:24 Re: So what's an "empty" array anyway?
Previous Message Dave Cramer 2008-10-21 19:45:24 pg_ctl less than useful error message on windows when privileges wrong for postgres