pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume Smet <guillaume.smet@gmail.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Cc: thierry.buffet@fr.nurun.com
Subject: Re: Memory leaks using refcursors
Date: Wed, 17 Jan 2007 17:31:15 -0500
Message-ID: <6135.1169073075@sss.pgh.pa.us> (raw)
In-Reply-To: <1d4e0c10701171422u2e9d8758ia663dd1f826f8258@mail.gmail.com>
References: <1d4e0c10701171053t55e60a2epf3e395b5b97101b5@mail.gmail.com>
	<1d4e0c10701171422u2e9d8758ia663dd1f826f8258@mail.gmail.com>

"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> Isn't there a way to keep the cursor name and close it automatically
> when the statement or the resulting result set is closed?

While I agree that the driver probably should do that, I'm not sure why
you are having a problem.  A cursor doesn't normally accumulate its
result set in memory on the backend side, so I wouldn't have expected
all that big a memory leak.  What queries are you executing?

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <6135.1169073075@sss.pgh.pa.us>
Permalink:  ../6135.1169073075@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6135.1169073075@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guillaume.smet@gmail.com, thierry.buffet@fr.nurun.com
  Subject: Re: Memory leaks using refcursors
  In-Reply-To: <6135.1169073075@sss.pgh.pa.us>
  References: <1d4e0c10701171053t55e60a2epf3e395b5b97101b5@mail.gmail.com> <1d4e0c10701171422u2e9d8758ia663dd1f826f8258@mail.gmail.com> <6135.1169073075@sss.pgh.pa.us>

* 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