pg_select Equivalent in libpq - Mailing list pgsql-interfaces

From Ecmel Ercan
Subject pg_select Equivalent in libpq
Date
Msg-id 1000661098.5594.6.camel@localhost.localdomain
Whole thread Raw
List pgsql-interfaces
Hi,

I am new to this list so if I ask a dump question please forgive me :)

I am writing a GTK+ C program using libpq.

At some point, I need to process each tuple returned by the PQexec
SELECT query as soon as it is received.  (Actually I like to insert them
in a table widget).

But when I execute PQExec, all the SELECT result is fetched first.  I
have a very big table so I need to insert each row as soon as they are
fetched from the server.

The pg_exec function does this but it is in TCL library.

How can I achive the same result in libpq?

Thanks for bearing me.

Ecmel





pgsql-interfaces by date:

Previous
From: Carlos Moreno
Date:
Subject: Re:
Next
From: Ecmel Ercan
Date:
Subject: pg_select Equivalent in libpq