Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BDB601337BE8 for ; Wed, 26 Jan 2011 15:16:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 46778-01-2; Wed, 26 Jan 2011 19:16:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 8D6A21337BFC; Wed, 26 Jan 2011 15:16:22 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0QJGJJs023283; Wed, 26 Jan 2011 14:16:19 -0500 (EST) To: Jens Kapp cc: pgsql-odbc@postgresql.org, pgsql-bugs@postgresql.org Subject: Re: NO DATA error message in Frontend when querying large datasets In-reply-to: <4D40492F.2070108@gmx.de> References: <4D40492F.2070108@gmx.de> Comments: In-reply-to Jens Kapp message dated "Wed, 26 Jan 2011 17:17:51 +0100" Date: Wed, 26 Jan 2011 14:16:18 -0500 Message-ID: <23282.1296069378@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/214 X-Sequence-Number: 29236 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