Hello Dimitri,
>Hope it's more clear now and at least there is a choice :))
>As well, if your query result will be 500 (for ex.) I think the
>difference will be less important between non-CURSOR and "FETCH 500"
>execution...
The problem is that I am using ODBC and not libpq directly.
I will have to rewrite most of the queries and use temporary tables in some
places, but at least I know now what the problem was.
Thanks for your help.
Rainer