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

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: So what's an "empty" array anyway?
Date: 2008-10-21 21:03:16
Message-ID: 47938F22-E981-451A-BC9C-AA61907B06B5@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Oct 21, 2008, at 13:58, Tom Lane wrote:

>> If we got rid of zero dimension arrays, how would I declare a new
>> empty array in a PL/pgSQL function?
>
> Same as before, I think: initialize it to '{}'. What's at stake here
> is exactly what does that notation mean ...

An empty, single-dimension array. But I got the impression from Simon
that he thought it should be NULL.

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-10-21 21:16:29 Re: So what's an "empty" array anyway?
Previous Message Tom Lane 2008-10-21 20:58:41 Re: So what's an "empty" array anyway?