X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6998BD1C95E for ; Wed, 19 Nov 2003 07:11:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 15225-04 for ; Wed, 19 Nov 2003 03:10:45 -0400 (AST) Received: from tor.dinamis.com (CPE00d0b743a22f-CM400026117625.cpe.net.cable.rogers.com [24.114.157.237]) by svr1.postgresql.org (Postfix) with SMTP id 9B936D1BB13 for ; Wed, 19 Nov 2003 03:10:43 -0400 (AST) Received: (qmail 6482 invoked from network); 19 Nov 2003 07:10:43 -0000 Received: from unknown (HELO pluto-2k.dinamis.com) (192.168.0.6) by orion.tor.dinamis.com (192.168.0.1) with ESMTP; 19 Nov 2003 07:10:43 -0000 Message-Id: <5.2.0.9.0.20031119020207.029b8260@localhost> X-Sender: postgres%dinamis.com@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 19 Nov 2003 02:05:18 -0500 To: pgsql-admin@postgresql.org From: CLIFFORD ILKAY Subject: Re: Why am I getting a "cursor already in use" error? In-Reply-To: <5.2.0.9.0.20031118223744.0299b0e8@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/344 X-Sequence-Number: 11331 At 22:42 18/11/2003 -0500, CLIFFORD ILKAY wrote: >Hi, > >I am trying to create a PL/PGSQL stored proc in PostgreSQL 7.3.2 on >Mandrake 9.1. I keep getting a "cursor already in use" error even though I >only open the cursor once, fetch using that cursor, and then close the >cursor when I am finished with it. Why is this happening? I have pasted >the code at . Never mind. I was invoking the stored procedure incorrectly. Incorrect: select fx_extract_email_address('1111') from people; Correct: select * from fx_extract_email_address('1111'); Regards, Clifford Ilkay Dinamis Corporation 3266 Yonge Street, Suite 1419 Toronto, Ontario Canada M4N 3P6 Tel: 416-410-3326