X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9C30132A26B for ; Fri, 8 Oct 2004 20:32:52 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36575-02 for ; Fri, 8 Oct 2004 19:32:23 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 4733932A17B for ; Fri, 8 Oct 2004 20:32:24 +0100 (BST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id i98JW2IL016545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Oct 2004 13:32:04 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id i98JW2ga061185; Fri, 8 Oct 2004 13:32:02 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id i98JW25M061184; Fri, 8 Oct 2004 13:32:02 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 8 Oct 2004 13:32:02 -0600 From: Michael Fuhr To: sreejith s Cc: pgsql-sql@postgresql.org Subject: Re: Record Count Message-ID: <20041008193202.GA61143@winnie.fuhr.org> References: <5d14ecf904100810515d84c323@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d14ecf904100810515d84c323@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_DNS_FOR_FROM X-Spam-Level: * X-Archive-Number: 200410/53 X-Sequence-Number: 19156 On Fri, Oct 08, 2004 at 11:21:25PM +0530, sreejith s wrote: > How to get a the records returned by a sql executed within a pl/pgsql function It's not clear what you're asking, but perhaps one of the following pages will answer your question: http://www.postgresql.org/docs/7.4/static/plpgsql-statements.html#PLPGSQL-SELECT-INTO http://www.postgresql.org/docs/7.4/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS http://www.postgresql.org/docs/7.4/static/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING If you still have trouble, please post more info about what you're trying to do. -- Michael Fuhr http://www.fuhr.org/~mfuhr/