query large amount of data in c++ using libpq

Поиск
Список
Период
Сортировка
От Felix
Тема query large amount of data in c++ using libpq
Дата
Msg-id ebd12ced0708181255k3f870b21k954b1d7b6de749c3@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all,
i am using PQexecParams() to "SELECT" about 3 million record in C++, and it takes several minutes to make it done with used memory dramatically incresed(about 200MB).
it seems when i using PQexecParams(), i can't use the query result before all the data is sent to client.
is there something like server side cursor in libpq?
or is there any other way to do this in c++?
some articles say that query for large amount of data is automaticall handled well by pg, but i can't see how.
 
thanks~~~~

В списке pgsql-general по дате отправления:

Предыдущее
От: "Muhyiddin A.M Hayat"
Дата:
Сообщение: Re: server closed the connection unexpectedly
Следующее
От: Steve Manes
Дата:
Сообщение: Re: Writing most code in Stored Procedures