Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A93211337B6E for ; Thu, 27 Jan 2011 07:15:06 -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 24577-05 for ; Thu, 27 Jan 2011 11:14:59 +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 34F741337B4E for ; Thu, 27 Jan 2011 07:14:57 -0400 (AST) Received: (qmail invoked by alias); 27 Jan 2011 11:14:56 -0000 Received: from p4FDB4D91.dip.t-dialin.net (EHLO [127.0.0.1]) [79.219.77.145] by mail.gmx.net (mp056) with SMTP; 27 Jan 2011 12:14:56 +0100 X-Authenticated: #2809655 X-Provags-ID: V01U2FsdGVkX1+ZfAVnT5OZHJgFq4nFgW5We7AJ7dfpC4AOKe/LqS k+26V7ivmW7ceE Message-ID: <4D4153A7.9020907@gmx.de> Date: Thu, 27 Jan 2011 12:14:47 +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: Korry Douglas CC: Tom Lane , 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> <4D40A29D.40806@gmx.de> <4D7DB1B1-7D86-4B72-96A0-81E6DA675E58@enterprisedb.com> In-Reply-To: <4D7DB1B1-7D86-4B72-96A0-81E6DA675E58@enterprisedb.com> Content-Type: text/plain; charset=ISO-8859-1; 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/224 X-Sequence-Number: 29246 thanks a lot, "Declare/Fetch" fixed our issue! Am 27.01.2011 00:36, schrieb Korry Douglas: >> 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" ? > "Use Declare/Fetch" may be the setting that you want. That's a setting in the ODBC driver and you should be able to change that setting through the Windows ODBC Administrator. > > You may also want to change the "Server side prepare" setting. (Be sure to change one setting at a time and test your application between changes). > > -- Korry > >> 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 >>> >> -- >> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-bugs > ----------------------------------------------------------------------- > Korry Douglas > Senior Database Dude > EnterpriseDB Corporation > The Enterprise Postgres Company > > Phone: (804)241-4301 > Mobile: (620) EDB-NERD > > >