Re: Problem with selecting arrays in set-returning plpgsql function

From: Rory Campbell-Lange <rory(at)campbell-lange(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with selecting arrays in set-returning plpgsql function
Date: 2011-08-03 06:58:17
Message-ID: 20110803065817.GA29382@campbell-lange.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 02/08/11, Rory Campbell-Lange (rory(at)campbell-lange(dot)net) wrote:
> I am trying to select arrays in a set-returning function, but receiving
> the error: "array value must start with "{" or dimension information".
>
> This issue appears to relate to locationnodes.rs_people_c sometimes
> having an empty array. The return type into which
> locationnodes.rs_people_c is returned is INTEGER[].

My mistake was due to creating another return type expecting an array,
which received a simple INT.

Now sorted.
Rory

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2011-08-03 07:47:56 Re: pg_largeobject vs pg_toast_XXXX
Previous Message Simon Riggs 2011-08-03 03:18:19 Re: Timeline Conflict