From: Keary Suska <hierophant@pcisys.net>
To: Postgres-Interfaces <pgsql-interfaces@postgresql.org>
Subject: Asynchronous Queries/libpq
Date: Fri, 31 Mar 2006 12:56:13 -0700
Message-ID: <C052D76D.27B5A%hierophant@pcisys.net> (raw)
Me again.
I am trying to understand the process for asynchronous queries in libpq, and
I want to make sure I understand the process correctly.
Is it that PQgetResult will return a full query result from a single
command, and will only return NULL if there are no more commands that have
not completed, therefore only needing to be called once per command in the
dispatched query; or is it that PQgetResult must be repeatedly called for
even a single command query, and that it will only return NULL after each
command in the dispatched query has completed fully?
Further, can we *always* assume that query results will be returned in the
order they appear in the query dispatch?
Thanks,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: hierophant@pcisys.net
Subject: Re: Asynchronous Queries/libpq
In-Reply-To: <C052D76D.27B5A%hierophant@pcisys.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox