Memory leaks in PostgreSQL ODBC driver

From: mlw <markw(at)mohawksoft(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Memory leaks in PostgreSQL ODBC driver
Date: 2002-06-22 10:00:58
Message-ID: 3D144ADA.84CFB604@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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?

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message mlw 2002-06-22 13:09:05 Re: Memory leaks in PostgreSQL ODBC driver
Previous Message Bruce Momjian 2002-06-22 04:02:36 Re: ODBC Patch to prevent setting of KSQO on 7.3+ servers