Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjHP3-0004DF-Fm for pgsql-jdbc@arkaria.postgresql.org; Wed, 29 Oct 2014 00:46:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjHP1-0001qZ-Uy for pgsql-jdbc@arkaria.postgresql.org; Wed, 29 Oct 2014 00:46:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjHP0-0001qS-UN for pgsql-jdbc@postgresql.org; Wed, 29 Oct 2014 00:46:19 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjHOt-0000lc-8B for pgsql-jdbc@postgresql.org; Wed, 29 Oct 2014 00:46:17 +0000 Received: from ayaki.localdomain (58-7-82-18.dyn.iinet.net.au [58.7.82.18]) by mrelayeu.kundenserver.de (node=mreue002) with ESMTP (Nemesis) id 0MGJhX-1XpYmV0ucZ-00FDD9; Wed, 29 Oct 2014 01:45:30 +0100 Message-ID: <545038A4.3010100@2ndquadrant.com> Date: Wed, 29 Oct 2014 08:45:24 +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: Vitalii Tymchyshyn , Enrico Olivelli - Diennea CC: John R Pierce , PG-JDBC Mailing List Subject: Re: Disk buffering of resultsets References: <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> <54205F94.9010102@hogranch.com> <542091F0.10706@hogranch.com> <1321.1411433175@sss.pgh.pa.us> <54300AA6.3040309@2ndquadrant.com> <5435F3DA.1060401@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:oQ3KpVyFK0qGzA2jIKqHMetluqu4HIdFzEq3EhaqQnS kipTPsl2cNYaOJKEW688EipH6MmpMOX4DTyenqVuR45SLHUN1X dyZVhoFkSwAXFiql4CfGEZbPcWEjZ+DYsjHNbAeI3uKOVv25U1 x980/Vtr6ilrpyC9xciWiRz3zdX8eannQ6L1RT+EYp+pXaHM81 UqPd2mHj2Zl60x/5QjBsICmScfmEDw9ZhjfOfuuGPLL7Sbi7Zw R0BzRQRtdFq4ozwL6AhknTiRLdgtAmZVNeIkB2IdCM1MU0wi0z hfQpgq9EXTpYfRc56cGxnQ6ZQYfZWIJVswuHmp5JP7yjf4s1VM OHN6RbNoLcpfGuh6x1qsZE90871+I5fL+f8Lll/vf 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-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 10/21/2014 10:19 AM, Vitalii Tymchyshyn wrote: > Hello, all. > > Basically, alpha of p.1 is available > here: https://github.com/tivv/pgjdbc/tree/offloading > It passes all the tests of cursor-based implementation, but I want to > add some more (mostly with multiple open statements). I'm still not sure I fully see the benefits of this, or at least see them as worth the complexity introduced. I'm strongly opposed to the idea of finishing fetching when the next statement is created, then stashing any resulting exception in the prior statement so it's handled at close time or on the next resultset fetch. If you don't do that, and instead require that the caller fully fetch the resultset before starting the next statement (possibly via a helper thread) then it might be more OK. Overall though, I'm finding it hard to understand the use case for this. Why use this instead of multiple portals in an open transaction, or multiple connections? -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc