Re: Not clear on what PQgetResult does - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Not clear on what PQgetResult does
Date
Msg-id 451.1132256298@sss.pgh.pa.us
Whole thread Raw
In response to Not clear on what PQgetResult does  (David Rysdam <drysdam@ll.mit.edu>)
Responses Re: Not clear on what PQgetResult does  (David Rysdam <drysdam@ll.mit.edu>)
List pgsql-interfaces
David Rysdam <drysdam@ll.mit.edu> writes:
> I don't understand in what sense PQgetResult is asynchronous.

It isn't.  You can use it in an asynchronous client, but the way you do
that is by not calling it until PQisBusy says you can (which means the
whole result has arrived, and you're just calling PQgetResult to get
hold of it).

> If the latter, is pgtcl's pg_getresult supposed to work the same way?

Dunno ... there was no such command last time I looked at pgtcl.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: David Rysdam
Date:
Subject: Not clear on what PQgetResult does
Next
From: David Rysdam
Date:
Subject: Re: Not clear on what PQgetResult does