Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1NH7-0000ak-33 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 06:12:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1NH5-0003eh-U0 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 06:12:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1NH5-0003a9-FM for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 06:12:39 +0000 Received: from codesynthesis.com ([188.40.148.39]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1NGz-0002x5-4y for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 06:12:38 +0000 Received: from brak.codesynthesis.com (unknown [105.187.34.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id DE67B5FB5A; Thu, 8 Jul 2021 06:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codesynthesis.com; s=mail1; t=1625724751; bh=ok5xlKrkwqBv4DIHew1P2tx/1NuXsFp4Ealuxw0anyQ=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=BZf8c39kAMfYim8AZmjVaT/O2mqkdFGi/B7kPad4kmkm5WFFK5OIkcIkfRjzxjUnn qtlJfP6wwHPlDwyqlNHedfQPwhDg3mgJpl0YUYwSGkf45TVDeaOAehvtsSV+dbeCGb VU/i24NXIueqKJ/gsfOtzzOusdTq5TYugjPSbDNSZeFBAMErzGZWji6Cju1r6Giz34 JtAUwSMGbAkiiOptZFl4fIomIyqhlAZtAGo908ebUhoPG51Ibmg/YJbyFbWbzy44wO jFxhqXaprbkoo0RFb+048f09PHjSFHJSa4FTI2NX4mMRgTiT2NI4440uNR6htFVdgU tDkBMuBrae0ZA== Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 864B41A800C4; Thu, 8 Jul 2021 08:12:25 +0200 (SAST) Date: Thu, 8 Jul 2021 08:12:25 +0200 From: Boris Kolpackov To: Alvaro Herrera Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Pipeline mode and PQpipelineSync() Message-ID: References: <202107071730.vkyej2goquhp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202107071730.vkyej2goquhp@alvherre.pgsql> Organization: Code Synthesis User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alvaro Herrera writes: > Hmm ... aren't you trying to read more results than you sent queries? Hm, but should I be able to? Or, to put another way, should PQisBusy() indicate there is a result available without me sending a query for it? That sounds very counter-intuitive to me.