X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 07958D1B4FD for ; Mon, 29 Sep 2003 11:32:58 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 67904-02 for ; Mon, 29 Sep 2003 08:32:32 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 87887D1B4FC for ; Mon, 29 Sep 2003 08:32:29 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8TBWThK025557 for ; Mon, 29 Sep 2003 11:32:29 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8TBPgwL024614 for pgsql-odbc@postgresql.org; Mon, 29 Sep 2003 11:25:42 GMT From: kvrao@motorola.com (KV Rao) X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Fixed pool of memory for SQLGetData Date: 29 Sep 2003 04:25:30 -0700 Organization: http://groups.google.com/ Lines: 22 Message-ID: <26dca42d.0309290325.2baa30f8@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/101 X-Sequence-Number: 3299 Hi All, I am facing a strange problem. We are using postgres on linux. Our application code uses ODBC API (Driver: unixODBC) We observed that process size shoots up when a SQLGetData is done from application code on a table(s) with more than a 100,000 rows. Upon experimentation we found that if we restrict the SQLGetData to work on < 20,000 rows at a time then the size didn't grow. But since we couldn't hard code the number of rows in application, we want to know if there is a way to call SQLGetData() (or other equivalent ODBC API) where in a fixed pool of memory can be specified by the application. With this the driver will return the SQLGetData call once the buffer size max is reached. This will be a generic solution for us. Could some one let us know if some kind of solution is possible? PS: In case some one knows of any other news group please let me know so that I can post it there too. thanks in advance, --kv