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 1lyEW1-0004I1-5x for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jun 2021 14:15:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyEVx-0004L7-Mc for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jun 2021 14:15:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyEVx-0004Kg-AR for pgsql-hackers@lists.postgresql.org; Tue, 29 Jun 2021 14:15:01 +0000 Received: from codesynthesis.com ([188.40.148.39]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lyEVu-0006LN-Mj for pgsql-hackers@lists.postgresql.org; Tue, 29 Jun 2021 14:15:00 +0000 Received: from brak.codesynthesis.com (unknown [105.184.82.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by codesynthesis.com (Postfix) with ESMTPSA id B65BF5F16D; Tue, 29 Jun 2021 14:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codesynthesis.com; s=mail1; t=1624976094; bh=Y8Wbw6AZIAyM+zVs8bsALBWIkuOAvH9bsZQBybnJX2A=; h=Date:From:To:Subject:Message-ID:MIME-Version:From; b=jBBsAbJZnyQkhgFlS5K+WTWLamuv7pBZ3AZkHaqRwn6uyuc3pkJ/b2TckVdOwX3hV rU2ekZrPrHmblgQcFGMDzuBuoy4NqO0tSK42P+w5dSENJBcm0Lj2wsu6jJMk3zauGl ReEPwcdSp17/pelslU6slCqPEUnPSoOm8tY9brNYWESs8cAbS8mf8kGDEc5WTV/YJA xXigSDaBPquYofcMQ5rIfZuvuOJjxbyQfn6Lsc7qbW9CRSYseUBubiKKEfAkzW/7RC aL88tXdRBcmkWXYMNw9xPr969Bl/VZHElAhLFkvrKZEAEACUoPQTflbRjoYPRYzWMm pTBrGIhsDsjuA== Received: by brak.codesynthesis.com (Postfix, from userid 1000) id 3DD171A802C0; Tue, 29 Jun 2021 16:14:46 +0200 (SAST) Date: Tue, 29 Jun 2021 16:14:46 +0200 From: Boris Kolpackov To: Alvaro Herrera Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Pipeline mode and PQpipelineSync() Message-ID: References: <202106291354.wyn7ar6emdm6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202106291354.wyn7ar6emdm6@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: > 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 Except replacing `continue` on line 966 with `break` (that will make the code read-biased which I find triggers the error more readily, though I was able to trigger it both ways). Then in an explicit transaction send 500 prepared insert statements (see previous email for details) with 250'th having a duplicate primary key.