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 4D3B6D1C7F3 for ; Thu, 24 Jul 2003 02:00:04 +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 85913-03 for ; Wed, 23 Jul 2003 22:59:24 -0300 (ADT) Received: from lakemtao03.cox.net (lakemtao03.cox.net [68.1.17.242]) by svr1.postgresql.org (Postfix) with ESMTP id F4201D1C4CD for ; Wed, 23 Jul 2003 23:00:01 -0300 (ADT) Received: from [192.168.0.7] ([68.101.64.108]) by lakemtao03.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030724020004.EZZQ23518.lakemtao03.cox.net@[192.168.0.7]>; Wed, 23 Jul 2003 22:00:04 -0400 From: Robert Treat To: Bruce Momjian Subject: Re: TODO item for plpgsql Was Re: obtuse plpgsql function needs Date: Wed, 23 Jul 2003 22:00:03 -0400 User-Agent: KMail/1.5 Cc: pgsql-sql@postgresql.org References: <200307232306.h6NN66P01421@candle.pha.pa.us> In-Reply-To: <200307232306.h6NN66P01421@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: <200307232200.03736.xzilla@users.sourceforge.net> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/353 X-Sequence-Number: 14467 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