Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3C42D1337B84 for ; Wed, 26 Jan 2011 18:39:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 98107-07 for ; Wed, 26 Jan 2011 22:39:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 451F21337B77 for ; Wed, 26 Jan 2011 18:39:45 -0400 (AST) Received: (qmail invoked by alias); 26 Jan 2011 22:39:44 -0000 Received: from p4FDB714F.dip.t-dialin.net (EHLO [127.0.0.1]) [79.219.113.79] by mail.gmx.net (mp008) with SMTP; 26 Jan 2011 23:39:44 +0100 X-Authenticated: #2809655 X-Provags-ID: V01U2FsdGVkX18gcXIjT24gLcUODhK0E157DBYH0aN5uaCSfY7ihI 2z3sZYbuoB0yiO Message-ID: <4D40A29D.40806@gmx.de> Date: Wed, 26 Jan 2011 23:39:25 +0100 From: Jens Kapp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.8) Gecko/20100802 Mnenhy/0.8.3 Thunderbird/3.1.2 MIME-Version: 1.0 To: Tom Lane CC: pgsql-odbc@postgresql.org, pgsql-bugs@postgresql.org Subject: Re: NO DATA error message in Frontend when querying large datasets References: <4D40492F.2070108@gmx.de> <23282.1296069378@sss.pgh.pa.us> In-Reply-To: <23282.1296069378@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/217 X-Sequence-Number: 29239 hi tom, thanks a lot for your response. the frontend we are trying to use is a well known and spread laboratory system. our consultant has experience with other databases (oracle, sql) that are a lot bigger - with no problems. however i'm wondering that postgres is not working with the lab system AND other common DB frontends using ODBC. i guess there is no setting for: "use cursor instead" ? thanks jk Am 26.01.2011 20:16, schrieb Tom Lane: > Jens Kapp writes: >> we have postgres 9.0.1 installed on a windows 2008 r2 server. >> odbc is psqlodbc_09_00_0200.zip. >> the database has currently a size of around 800mb. >> it works as expected on the server (pgadmin), but if we try queries for >> large datasets we get the error message: "No data" from our frontend or >> any other database tools thats using the ODBC connection (e.g. anysql >> maestro). >> 1.) first we will make a query with only 1 column. we get data. >> 2.) then make the same query but with all columns: it says "No data". >> 3.) Afterwards we try the query from before again, but still getting "No >> data". > I wonder whether you're running out of memory for the query result in > the client side, and this "no data" is coming from some code that is not > written to cope with that happening. > > You might consider using a cursor to fetch large results a few rows at a > time. > > regards, tom lane >