Re: Memory leaks in PostgreSQL ODBC driver

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: mlw <markw(at)mohawksoft(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Memory leaks in PostgreSQL ODBC driver
Date: 2002-06-24 10:00:26
Message-ID: 3D16EDBA.6DA0F0F0@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

mlw wrote:
>
> mlw wrote:
> >
> > It seems that when you perform a large query against the postgresql ODBC driver
> > it sucks it all in to memory. If the query returns more data than you have
> > memory, it fails. To change this behavior, you set UseDeclareFetch to yes.
> >
> > It seems that in QR_read_tuple, a buffer is allocated but never freed. Has
> > anyone ever seen this before?
> >
> > I traced this in the unixODBC Postgre7.1 driver by replacing free/malloc with
> > debug versions, and it looks like the PostgreSQL version has the same issue.
> >
> > Could this buffer be freed else where?
> >
>
> The Windows odbc driver does this as well, which is not surprising, given that
> it is probably the same code.

Could you try the snapshot dll at http://w2422.nsk.ne.jp/~inoue/ ?

regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Julian Mehnle 2002-06-24 11:15:15 Re: [HACKERS] ODBC Driver 7.02.0001 (Win32) (Unicode mode): CRLF->LF works, LF->CRLF doesn't
Previous Message Hiroshi Inoue 2002-06-24 09:59:10 Re: [HACKERS] ODBC Driver 7.02.0001 (Win32) (Unicode mode): CRLF->LF