| From: | Henrik <henke(at)mac(dot)se> |
|---|---|
| To: | "Felix Ji" <list(at)zflier(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: query large amount of data in c++ using libpq |
| Date: | 2007-08-19 13:26:50 |
| Message-ID: | E195E86E-7D2A-41A1-913C-AF202497837C@mac.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
19 aug 2007 kl. 06:34 skrev Felix Ji:
> 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~~~~
libpqxx is what you need. then you can use cursors in c++.
cheers,
henke
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Phoenix Kiula | 2007-08-19 13:32:18 | Re: Postgresql performance in production environment |
| Previous Message | Magnus Hagander | 2007-08-19 12:37:00 | Re: Postgresql performance in production environment |