From: Paul B. Anderson <paul.a@pnlassociates.com>
To: pgsql-admin@postgresql.org
Subject: Stored procedure array limits
Date: Thu, 28 Sep 2006 18:11:55 -0400
Message-ID: <451C48AB.6090508@pnlassociates.com> (raw)
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
CONTEXT: PL/pgSQL function "name_search" line 64 at assignment
I have not exceeded the size of the arrays, index-wise.
I increased max_stack_depth to 32768 and work_mem to 32768 but without
effect.
If I comment out two particular arrays (that can have null values), it
also runs OK.
Anybody have any ideas?
Paul
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: paul.a@pnlassociates.com
Subject: Re: Stored procedure array limits
In-Reply-To: <451C48AB.6090508@pnlassociates.com>
References: <451C48AB.6090508@pnlassociates.com>
* 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