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 9DCA8D1B4F8 for ; Wed, 19 Nov 2003 03:47:39 +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 83991-05 for ; Tue, 18 Nov 2003 23:47:12 -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 25B2CD1B515 for ; Tue, 18 Nov 2003 23:47:07 -0400 (AST) Received: (qmail 6446 invoked from network); 19 Nov 2003 03:47:10 -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 03:47:10 -0000 Message-Id: <5.2.0.9.0.20031118223744.0299b0e8@localhost> X-Sender: postgres%dinamis.com@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Tue, 18 Nov 2003 22:42:32 -0500 To: pgsql-admin@postgresql.org From: CLIFFORD ILKAY Subject: Why am I getting a "cursor already in use" error? 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/343 X-Sequence-Number: 11330 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 . Regards, Clifford Ilkay Dinamis Corporation 3266 Yonge Street, Suite 1419 Toronto, Ontario Canada M4N 3P6 Tel: 416-410-3326