Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XlIOY-0001c9-DL for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Nov 2014 14:14:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XlIOX-0000k9-Fo for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Nov 2014 14:14:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XlIOW-0000jy-Db; Mon, 03 Nov 2014 14:14:08 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XlIOR-0007So-Hh; Mon, 03 Nov 2014 14:14:07 +0000 Received: from ayaki.localdomain (58-7-68-63.dyn.iinet.net.au [58.7.68.63]) by mrelayeu.kundenserver.de (node=mreue002) with ESMTP (Nemesis) id 0MDYoX-1XqYeJ3Ak9-00Grv3; Mon, 03 Nov 2014 15:14:00 +0100 Message-ID: <54578DA2.1050704@2ndquadrant.com> Date: Mon, 03 Nov 2014 22:13:54 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Mikko Tiihonen , "pgsql-hackers@postgresql.org" , "pgsql-jdbc@postgresql.org" Subject: Re: Pipelining executions to postgresql server References: <1414850643686.34687@nitorcreations.com> In-Reply-To: <1414850643686.34687@nitorcreations.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:cOdaa4aVzkSK5R7UQf/GUczhn7hQxxM4FDBmKPJlClp 0pJUQiaaGPtQZARSZbmRLziQpDN0kZYGITdJHQpKPoi2eZshdd U9dEGUVWDD3ukEg58zw3m/DMzCLlveo0uGxKAYNOvgevBrcbos ErFpGteZ4+xv4CDG67G5463Ar/kXidECcQRi78re9k465egOf+ EDBO3D4/Z1IYsiXg92m4rFa626yd8oy9VQIqXf+Iu4i4RYb+9o wtv0lIhpGXjmH2H39V1mrekYP6elhBI9IeSNaiDN1Ce7sYRINS rSR5foCSDDp9owNy4yNyzsQ7zsWYTe6iyYjNZ5174wf+83f1Nq 1IvqGn9bKybcxmakZ/ELKlH51Df1FqgeKYQGo5lO/ X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 11/01/2014 10:04 PM, Mikko Tiihonen wrote: > Hi, > > I created a proof of concecpt patch for postgresql JDBC driver that allows the caller to do pipelining of requests within a transaction. The pipelining here means same as for HTTP: the client can send the next execution already before waiting for the response of the previous request to be fully processed. ... but ... it already does that. Use batches, and that's exactly what it'll do. Statement.addBatch(String) or PreparedStatement.addBatch() > What kind of problems could pipelining cause (assuming we limit it to rather simple use cases only)? Client/server pipleline deadlocks due to how PgJDBC manages it. See the details: https://github.com/pgjdbc/pgjdbc/issues/195 and https://github.com/pgjdbc/pgjdbc/issues/194 -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers