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 4FB92D1B8A9 for ; Tue, 2 Sep 2003 14:05:40 +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 61858-08 for ; Tue, 2 Sep 2003 11:05:33 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 579E8D1B897 for ; Tue, 2 Sep 2003 11:05:29 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h82E5WjX026741; Tue, 2 Sep 2003 10:05:33 -0400 (EDT) To: "Kumar" Cc: "psql" Subject: Re: Unnamed Cursor return In-reply-to: <020001c37130$dcd632e0$7502a8c0@hdsc.com> References: <020001c37130$dcd632e0$7502a8c0@hdsc.com> Comments: In-reply-to "Kumar" message dated "Tue, 02 Sep 2003 14:31:40 +0530" Date: Tue, 02 Sep 2003 10:05:32 -0400 Message-ID: <26740.1062511532@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/9 X-Sequence-Number: 14987 "Kumar" writes: > (1) pls have a look in the function, that I have named the cursor as ref1, = > but again it is returning a unnamed cursor? This is not a bug. See the "returning cursors" section of the plpgsql manual. (IIRC, you can also create a named cursor by binding the cursor in DECLARE.) > (2) How to fetch the content of the unnamed cursor at PgAdmin and at Comman= > d prompt? You probably need a BEGIN block in the psql case. Can't help you with pgadmin. regards, tom lane