X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8821252A11 for ; Tue, 9 Aug 2005 12:16:52 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65098-03 for ; Tue, 9 Aug 2005 15:16:47 +0000 (GMT) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by svr1.postgresql.org (Postfix) with ESMTP id 37C2552939 for ; Tue, 9 Aug 2005 12:16:45 -0300 (ADT) Received: from webmail.xs4all.nl (webmail4.xs4all.nl [194.109.22.164]) by smtp-vbr2.xs4all.nl (8.13.3/8.13.3) with ESMTP id j79FGipQ089243 for ; Tue, 9 Aug 2005 17:16:44 +0200 (CEST) (envelope-from jtv@xs4all.nl) Received: from 210.86.147.191 by webmail.xs4all.nl with HTTP; Tue, 9 Aug 2005 17:16:44 +0200 (CEST) Message-ID: <4395.210.86.147.191.1123600604.squirrel@210.86.147.191> Date: Tue, 9 Aug 2005 17:16:44 +0200 (CEST) Subject: Getting results after networking error From: jtv@xs4all.nl To: pgsql-interfaces@postgresql.org User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.228 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200508/5 X-Sequence-Number: 5676 Hi all, Here's something I've been trying to figure out about libpq, and I hope perhaps someone here can shed some light on it. I sometimes issue multiple queries at once using semicolons, so one call returns multiple results. Now let's say my network connection to the backend breaks and not all the results can be returned--I get a result with some error code (wish I knew which, but that's another story) followed by a NULL result to indicate that no more results are following, right? Now let's say that I issue my next query and the network connection recovers in the process. I happily start retrieving results again, but are they only results for the new query, or do I go through the remaining results of the last query first? Jeroen