From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul B. Anderson <paul.a@pnlassociates.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Stored procedure array limits
Date: Thu, 28 Sep 2006 23:57:12 -0400
Message-ID: <9461.1159502232@sss.pgh.pa.us> (raw)
In-Reply-To: <451C48AB.6090508@pnlassociates.com>
References: <451C48AB.6090508@pnlassociates.com>
"Paul B. Anderson" <paul.a@pnlassociates.com> writes:
> I have a large stored procedure with 16 arrays, mostly varchar, each
> with dimension 3000. The procedure works fine on a small number of rows
> used from these arrays but gets the following error for large rowsets:
> ERROR: invalid array subscripts
Right offhand I only see that error being thrown for out-of-range array
subscripts. Are you maybe trying to fill the arrays in nonsequential
order?
> If I comment out two particular arrays (that can have null values), it
> also runs OK.
As already noted, we don't support nulls in arrays before 8.2, but
I'm not exactly sure how that omission leads to this error message.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, paul.a@pnlassociates.com
Subject: Re: Stored procedure array limits
In-Reply-To: <9461.1159502232@sss.pgh.pa.us>
References: <451C48AB.6090508@pnlassociates.com> <9461.1159502232@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox