Re: How to access array elements via PL/pgSQL trigger?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roland Roberts <roland(at)astrofoto(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to access array elements via PL/pgSQL trigger?
Date: 2001-12-28 20:11:01
Message-ID: 14452.1009570261@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Roland Roberts <roland(at)astrofoto(dot)org> writes:
> DEBUG: StartTransactionCommand
> DEBUG: query: insert into exam (type, school_id, year, population, level) values ('ELA', 4, 1999, 'GE', '{ 7,87,208,73 }')
> DEBUG: ProcessQuery
> NOTICE: plpgsql: ERROR during compile of exam_statistics_fixup near line 4
> ERROR: parse error at or near "["
> DEBUG: AbortCurrentTransaction

Okay, so it's not coming from a passed-down query. I think my original
guess is right: plpgsql doesn't support assignment to array elements.

> Should I log this as a bug?

"Missing feature" would be more like it. Postgres' array support is
pretty weak in a lot of places, not only plpgsql.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-12-28 20:20:44 Re: postgres processes spending most of their time in the kernel
Previous Message Jeffrey W. Baker 2001-12-28 19:40:16 Re: postgres processes spending most of their time in the