X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 36FEA11F685A for ; Fri, 31 Mar 2006 15:56:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18570-10 for ; Fri, 31 Mar 2006 15:56:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from krusty.pcisys.net (krusty.pcisys.net [216.229.32.178]) by postgresql.org (Postfix) with ESMTP id B14A411F665A for ; Fri, 31 Mar 2006 15:56:15 -0400 (AST) Received: from [192.168.0.101] (dsl-206-53-29-46.cos.pcisys.net [206.53.29.46]) by krusty.pcisys.net (8.13.3/8.13.3) with ESMTP id k2VJuDHQ007509 for ; Fri, 31 Mar 2006 12:56:13 -0700 (MST) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Fri, 31 Mar 2006 12:56:13 -0700 Subject: Asynchronous Queries/libpq From: Keary Suska To: Postgres-Interfaces Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/34 X-Sequence-Number: 6090 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"