X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6B3FFD1C9EC for ; Fri, 1 Aug 2003 19:17:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 62738-07 for ; Fri, 1 Aug 2003 16:16:00 -0300 (ADT) Received: from lakemtao02.cox.net (lakemtao02.cox.net [68.1.17.243]) by svr1.postgresql.org (Postfix) with ESMTP id 7EB83D1C9EF for ; Fri, 1 Aug 2003 16:17:06 -0300 (ADT) Received: from [192.168.0.7] ([68.101.64.108]) by lakemtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030801191658.EZQM24359.lakemtao02.cox.net@[192.168.0.7]>; Fri, 1 Aug 2003 15:16:58 -0400 From: Robert Treat To: Bruce Momjian Subject: Re: TODO item for plpgsql Was Re: obtuse plpgsql function needs Date: Fri, 1 Aug 2003 15:16:56 -0400 User-Agent: KMail/1.5 Cc: pgsql-sql@postgresql.org References: <200307310412.h6V4CNt25172@candle.pha.pa.us> In-Reply-To: <200307310412.h6V4CNt25172@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308011516.56947.xzilla@users.sourceforge.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/11 X-Sequence-Number: 14627 I don't seem to have any plsql specfic documentation, and the rest of my oracle documentation isn't specfific enough. Anyone else? Robert Treat On Thursday 31 July 2003 00:12, Bruce Momjian wrote: > Does Oracle have a syntax for this? > > --------------------------------------------------------------------------- > > Robert Treat wrote: > > On Wednesday 23 July 2003 19:06, Bruce Momjian wrote: > > > Robert Treat wrote: > > > > On Wed, 2003-07-23 at 15:38, greg@turnstep.com wrote: > > > > > FOR myrec IN EXECUTE myinfo LOOP > > > > > biglist := myrec.info; > > > > > END LOOP; > > > > > > > > One other thing, I hate when I have to do things like the above, can > > > > we get a TODO like: > > > > > > > > allow 'EXECUTE var INTO record' in plpgsql > > > > > > So the TODO would be? > > > > > > Allow PL/pgSQL EXECUTE to return a single record outside a loop > > > > that's what I wrote, but not what I meant :-) I do like the sound of it > > though, but really what I meant to say was: > > EXECUTE var1 INTO var2 > > but this assumes a number of things, namely that executing var1 will > > return only one field, and one row. I guess that would be: > > Allow PL/pgSQL EXECUTE to return a single variable outside a loop > > > > Robert Treat > > -- > > Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/docs/faqs/FAQ.html -- Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL