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 1lyFHy-0005d6-Lu for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jun 2021 15:04:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyFHR-0003pM-TE for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jun 2021 15:04:05 +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 1lyFHR-0003nr-Hy for pgsql-hackers@lists.postgresql.org; Tue, 29 Jun 2021 15:04:05 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyFHP-0000cs-0B for pgsql-hackers@lists.postgresql.org; Tue, 29 Jun 2021 15:04:05 +0000 Received: by mail-pf1-x431.google.com with SMTP id j24so3398126pfi.12 for ; Tue, 29 Jun 2021 08:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=33oKot95/jyhjo/QoKW2tA/1M0UB42LAfoQdJIFRuQg=; b=RD8CZ+bJWbYZedYZxoQTltDxEgnnV5hVeoacP4zCjoOGZ9h82qRfr5KoxpaQXVXDHn 6JqIbNUeec+kH/NCujluQjuHsuelV5ehIXkhZn+RT4HKSzCQ0m4jOtSF1TP9eCtmoWZv e7hiuua6ig43FCG3E8dG7PLrF+hfsx+VK/5MnD7/3/OEG5+xmt5ezEbjTYt/aY4lBW9w LHc0PtzamRZdMmDmjVvuaHQsC4ykYFdyKdCri9cA7ykBcMcLikYKifqnRaisz/z0m7+q G41aDG1w/nAsxE9yvbzQGr5748mnQD5I5LlaR9LS+6jBC+yDoMMl4aINrxqlEGB+yc7q AiSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=33oKot95/jyhjo/QoKW2tA/1M0UB42LAfoQdJIFRuQg=; b=pozq7zscJF8JrWNOScaSdzMnT6030ljDVel49Vh9P6ZC1hXF3boQzwpCh7KSe8DkVR RytMF/pKzBmHyihWHRm7IFtYNo+puW8A975q37BPIjral6IvcQlI1nlFgTQrWynNbwBO /lurWCRThIgEAw2enhsgbFPa9LF/pIqsXwSd/nMosdGo06Gkvk/R+wXJj/ab6y/yQxQ9 jegii0Cj8/I6bT/i7tOp1vmwvPQjVVLDg7opTljoikhdlq1JhSsSBP5SRbDp2X04c4dG UEp6dkzrqF4fLRrfKIkdnPS98D/1auauDjkbc/1LnyRkeRRWUYdllqDp9CW0yMCjSN2M T7Bg== X-Gm-Message-State: AOAM5316JyXsusE86G8zK38EM3KA4I0rfzapNn5iTlayn9lPHgPDRDtp t4QoM0fR+Z22V2goVv4SqS8c0Q== X-Google-Smtp-Source: ABdhPJzhhZUuF+2jQvBtVIlzHd7SIJc6wjjkr6iOCD6xVMA8LuVBh9jQNcVmNqZcO+fNeFPOOlj2EQ== X-Received: by 2002:a63:5442:: with SMTP id e2mr29084637pgm.365.1624979040661; Tue, 29 Jun 2021 08:04:00 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.95]) by smtp.gmail.com with ESMTPSA id f18sm3445949pjq.48.2021.06.29.08.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 08:03:59 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B79922A07E0; Tue, 29 Jun 2021 11:03:57 -0400 (-04) Date: Tue, 29 Jun 2021 11:03:57 -0400 From: Alvaro Herrera To: Boris Kolpackov Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Pipeline mode and PQpipelineSync() Message-ID: <202106291503.pvs26qmxojls@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-29, Boris Kolpackov wrote: > Alvaro Herrera writes: > > > No luck reproducing any problems with this sequence as yet. > > Can you try to recreate the call flow as implemented here (it's > pretty much plain old C if you ignore error handling): > https://git.codesynthesis.com/cgit/odb/libodb-pgsql/tree/odb/pgsql/statement.cxx?h=bulk#n789 Hmm, I can't see what's different there than what I get on my test program. Can you please do PQtrace() on the connection and send the resulting trace file? Maybe I can compare the traffic to understand what's the difference. (I do see that you're doing PQisBusy that I'm not. Going to try adding it next.) Thanks -- Álvaro Herrera 39°49'30"S 73°17'W