pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kris Jurka <books@ejurka.com>
Cc: Guillaume Smet <guillaume.smet@gmail.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Memory leaks using refcursors
Date: Sun, 18 Feb 2007 20:09:11 -0500
Message-ID: <40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0702181903050.21234@leary.csoft.net>
References: <1d4e0c10701171053t55e60a2epf3e395b5b97101b5@mail.gmail.com>
	<1d4e0c10701171527u744fd81eh6de7908599349af3@mail.gmail.com>
	<C8C31B9B-ABE7-41D6-AB6C-F03B2C11D038@postgresintl.com>
	<1d4e0c10701180057s2c2e4c85g50998c883bb470df@mail.gmail.com>
	<1E6DB692-8D5A-493F-9E1F-82130917EE77@postgresintl.com>
	<1d4e0c10701180646p56c18dcal2cb3526bd1050e63@mail.gmail.com>
	<1d4e0c10701180942i60edff8bt914258ab0e1761ac@mail.gmail.com>
	<212AA1E7-770A-4F24-B8DF-B11438F748F7@fastcrypt.com>
	<1d4e0c10701190526k3282d919l41e5d0d081b9ee25@mail.gmail.com>
	<127FFFA1-CF4F-4CC5-A6EA-23442E2E0C69@fastcrypt.com>
	<1d4e0c10701190807x72445dc4s59d2a8cb21ff55c9@mail.gmail.com>
	<123826E4-A0F1-4FE0-9726-2FD2ED26CDFB@fastcrypt.com>
	<Pine.BSO.4.64.0702181903050.21234@leary.csoft.net>

Kris,

I don't see a downside to it. Once we read the data from the cursor  
we have no more use for it. AFACT it should be committed.

Dave
On 18-Feb-07, at 7:20 PM, Kris Jurka wrote:

>
>
> On Fri, 19 Jan 2007, Dave Cramer wrote:
>
>> So I've sent Guillaume a driver which closes the refcursor  
>> directly after reading the contents for testing.
>>
>> So far so good.
>>
>
> So what's the resolution on this?  Should this fix be committed?   
> What are the downsides?
>
> Kris Jurka
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org
>




view thread (16+ messages)  latest in thread

Message-ID: <40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com>
Permalink:  ../40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com/
Also on:    postgresql.org/message-id/40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com

 · 

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: pg@fastcrypt.com, books@ejurka.com, guillaume.smet@gmail.com
  Subject: Re: Memory leaks using refcursors
  In-Reply-To: <40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com>
  References: <1d4e0c10701171053t55e60a2epf3e395b5b97101b5@mail.gmail.com> <1d4e0c10701171527u744fd81eh6de7908599349af3@mail.gmail.com> <C8C31B9B-ABE7-41D6-AB6C-F03B2C11D038@postgresintl.com> <1d4e0c10701180057s2c2e4c85g50998c883bb470df@mail.gmail.com> <1E6DB692-8D5A-493F-9E1F-82130917EE77@postgresintl.com> <1d4e0c10701180646p56c18dcal2cb3526bd1050e63@mail.gmail.com> <1d4e0c10701180942i60edff8bt914258ab0e1761ac@mail.gmail.com> <212AA1E7-770A-4F24-B8DF-B11438F748F7@fastcrypt.com> <1d4e0c10701190526k3282d919l41e5d0d081b9ee25@mail.gmail.com> <127FFFA1-CF4F-4CC5-A6EA-23442E2E0C69@fastcrypt.com> <1d4e0c10701190807x72445dc4s59d2a8cb21ff55c9@mail.gmail.com> <123826E4-A0F1-4FE0-9726-2FD2ED26CDFB@fastcrypt.com> <Pine.BSO.4.64.0702181903050.21234@leary.csoft.net> <40EBB522-87F2-48D8-8CD6-B846006344B9@fastcrypt.com>

* 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