X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7DD179FB1B7 for ; Fri, 7 Jul 2006 10:21:21 -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 05213-06 for ; Fri, 7 Jul 2006 10:21:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.201]) by postgresql.org (Postfix) with ESMTP id C8F2D9FAC76 for ; Fri, 7 Jul 2006 10:21:16 -0300 (ADT) Received: by nz-out-0102.google.com with SMTP id 8so1478732nzo for ; Fri, 07 Jul 2006 06:21:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oLILjnoqHpkMueDyKVExx2Osuzw5bGvOu63QUykyln1q/3AOqMK01K/aJP9SFFG6PKcOcRw/egzZLiLadLGZJzytvoFF0fE1bfZnCC7lqXUCqdCz16l0rzAMSsyJR9+5oU9i1HzaAV1XnsYI83XN4ehdqV7LSo2g6yTKP6RKJ7s= Received: by 10.65.235.15 with SMTP id m15mr2120727qbr; Fri, 07 Jul 2006 06:21:14 -0700 (PDT) Received: by 10.65.139.14 with HTTP; Fri, 7 Jul 2006 06:21:14 -0700 (PDT) Message-ID: Date: Fri, 7 Jul 2006 09:21:14 -0400 From: "Merlin Moncure" To: "PGSQL Performance" Subject: Re: Calling a SP from Curosor loop In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1151600435.709010.253120@j72g2000cwa.googlegroups.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/65 X-Sequence-Number: 19925 On 29 Jun 2006 10:00:35 -0700, satishchandra999@gmail.com wrote: > I have SP, which has a cursor iterations. Need to call another SP for > every loop iteration of the cursor. The pseudo code is as follows.. i would suggest converting your code to pl/pgsql and reposting. that look awfully like t-sql stored procedure, you may as well be saying, 'gobble de gook bak wakka bakka bak!', got it? :-) (aside: pg/pgsql functions support nested calls, recursion, etc and should provide no problems when properly written). merlin