pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedNO DATA error message in Frontend when querying large datasets
5+ messages / 3 participants
[nested] [flat]
* NO DATA error message in Frontend when querying large datasets
@ 2011-01-26 16:17 Jens Kapp <jens-kapp@gmx.de>
0 siblings, 1 reply; 5+ messages in thread
From: Jens Kapp @ 2011-01-26 16:17 UTC (permalink / raw)
To: pgsql-odbc; pgsql-bugs@postgresql.org
hello,
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".
Only a reconnect will "fix" that!
here are the results:
select sample_number from result
Query OK, 325194 rows affected (28.75 sec)
select * from result
Query OK, 0 rows affected (8.75 sec)
select sample_number from result
Query OK, 0 rows affected (0.20 sec)
cheers jk
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: NO DATA error message in Frontend when querying large datasets
@ 2011-01-26 19:16 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jens Kapp <jens-kapp@gmx.de>
0 siblings, 1 reply; 5+ messages in thread
From: Tom Lane @ 2011-01-26 19:16 UTC (permalink / raw)
To: Jens Kapp <jens-kapp@gmx.de>; +Cc: pgsql-odbc; pgsql-bugs@postgresql.org
Jens Kapp <jens-kapp@gmx.de> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: NO DATA error message in Frontend when querying large datasets
@ 2011-01-26 22:39 Jens Kapp <jens-kapp@gmx.de>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 5+ messages in thread
From: Jens Kapp @ 2011-01-26 22:39 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-odbc; pgsql-bugs@postgresql.org
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<jens-kapp@gmx.de> 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
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: NO DATA error message in Frontend when querying large datasets
@ 2011-01-26 23:36 Korry Douglas <korry.douglas@enterprisedb.com>
parent: Jens Kapp <jens-kapp@gmx.de>
0 siblings, 1 reply; 5+ messages in thread
From: Korry Douglas @ 2011-01-26 23:36 UTC (permalink / raw)
To: Jens Kapp <jens-kapp@gmx.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-odbc; pgsql-bugs@postgresql.org
> 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<jens-kapp@gmx.de> 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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: NO DATA error message in Frontend when querying large datasets
@ 2011-01-27 11:14 Jens Kapp <jens-kapp@gmx.de>
parent: Korry Douglas <korry.douglas@enterprisedb.com>
0 siblings, 0 replies; 5+ messages in thread
From: Jens Kapp @ 2011-01-27 11:14 UTC (permalink / raw)
To: Korry Douglas <korry.douglas@enterprisedb.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-odbc; pgsql-bugs@postgresql.org
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<jens-kapp@gmx.de> 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
>
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2011-01-27 11:14 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 16:17 NO DATA error message in Frontend when querying large datasets Jens Kapp <jens-kapp@gmx.de>
2011-01-26 19:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-01-26 22:39 ` Jens Kapp <jens-kapp@gmx.de>
2011-01-26 23:36 ` Korry Douglas <korry.douglas@enterprisedb.com>
2011-01-27 11:14 ` Jens Kapp <jens-kapp@gmx.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox