Re: When to send the next asyncronous query - Mailing list pgsql-novice

From Tom Lane
Subject Re: When to send the next asyncronous query
Date
Msg-id 17678.1033708325@sss.pgh.pa.us
Whole thread Raw
In response to When to send the next asyncronous query  (HK <harikrishnan@midascomm.com>)
List pgsql-novice
HK <harikrishnan@midascomm.com> writes:
>     In asyncronous queries, after i send the first query, when should
> i send the next query.

After PQgetResult() returns NULL.

contrib/pgbench is an example of how to use this stuff.  I'm afraid
there are no other examples in the standard PG distribution :-(

            regards, tom lane

pgsql-novice by date:

Previous
From: HK
Date:
Subject: When to send the next asyncronous query
Next
From: "Cameron Moller"
Date:
Subject: word / line wrap at the terminal