pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Stathis Stergou <stathisstergou@yahoo.gr>
Cc: pgsql-sql@postgresql.org
Subject: Re: cursor "<unnamed portal 1>" already in use
Date: Fri, 2 Sep 2005 07:12:11 -0600
Message-ID: <20050902131211.GA65202@winnie.fuhr.org> (raw)
In-Reply-To: <431834E0.5010802@yahoo.gr>
References: <431834E0.5010802@yahoo.gr>

On Fri, Sep 02, 2005 at 02:17:52PM +0300, Stathis Stergou wrote:
> ERROR:  cursor "<unnamed portal #a number here#>" already in use
> CONTEXT:  PL/pgSQL function "bufferfeatures" line 19 at open

You're trying to open a cursor that's already open.  Close the
cursor at the end of the loop in which you opened it, so that it
gets closed before you try to open it again on the next loop
iteration.

-- 
Michael Fuhr



view thread (2+ messages)

Message-ID: <20050902131211.GA65202@winnie.fuhr.org>
Permalink:  ../20050902131211.GA65202@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050902131211.GA65202@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, stathisstergou@yahoo.gr
  Subject: Re: cursor "<unnamed portal 1>" already in use
  In-Reply-To: <20050902131211.GA65202@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox