X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 2389A9DC807 for ; Thu, 15 Dec 2005 13:14:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12034-02 for ; Thu, 15 Dec 2005 13:14:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id B0F609DC84C for ; Thu, 15 Dec 2005 13:14:22 -0400 (AST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id AABEA41D54E; Thu, 15 Dec 2005 17:14:08 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id F34AC15EA4; Thu, 15 Dec 2005 17:14:20 +0000 (GMT) Message-ID: <43A1A46C.1070506@archonet.com> Date: Thu, 15 Dec 2005 17:14:20 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5 (X11/20051025) MIME-Version: 1.0 To: grupos Cc: pgsql-sql@postgresql.org Subject: Re: RETURN SET OF DATA WITH CURSOR References: <43A18B25.1010705@carvalhaes.net> <43A193B4.5070206@archonet.com> <43A1A09D.6020708@carvalhaes.net> In-Reply-To: <43A1A09D.6020708@carvalhaes.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/133 X-Sequence-Number: 23675 grupos wrote: > Hi Richard, > > Thanks for your promptly answer. I don't have experience returning > refcursor but my choice would be it. > > I read the documentation but I didn't find any example with my necessity... http://www.postgresql.org/docs/8.1/static/plpgsql-cursors.html#PLPGSQL-CURSOR-USING See the example in "returning cursors" -- Richard Huxton Archonet Ltd