Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 440FA9FA4A0 for ; Fri, 29 Sep 2006 00:57:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 49557-08 for ; Fri, 29 Sep 2006 00:57:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1DE8A9FA418 for ; Fri, 29 Sep 2006 00:57:14 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8T3vCJp009462; Thu, 28 Sep 2006 23:57:12 -0400 (EDT) To: "Paul B. Anderson" cc: pgsql-admin@postgresql.org Subject: Re: Stored procedure array limits In-reply-to: <451C48AB.6090508@pnlassociates.com> References: <451C48AB.6090508@pnlassociates.com> Comments: In-reply-to "Paul B. Anderson" message dated "Thu, 28 Sep 2006 18:11:55 -0400" Date: Thu, 28 Sep 2006 23:57:12 -0400 Message-ID: <9461.1159502232@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.096 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/358 X-Sequence-Number: 23272 "Paul B. Anderson" 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