Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjdsW-0005PB-Ll for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 Oct 2014 00:46:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjdsV-00075y-LB for pgsql-jdbc@arkaria.postgresql.org; Thu, 30 Oct 2014 00:46:15 +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 1XjdsU-00075r-Ni for pgsql-jdbc@postgresql.org; Thu, 30 Oct 2014 00:46:14 +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 1XjdsP-0002Un-0I for pgsql-jdbc@postgresql.org; Thu, 30 Oct 2014 00:46:11 +0000 Received: from ayaki.localdomain (58-7-91-253.dyn.iinet.net.au [58.7.91.253]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0MV0jR-1XZaK80xhd-00YOoq; Thu, 30 Oct 2014 01:45:43 +0100 Message-ID: <54518A31.8010704@2ndquadrant.com> Date: Thu, 30 Oct 2014 08:45:37 +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 CC: Enrico Olivelli - Diennea , 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> <545038A4.3010100@2ndquadrant.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:t0AgeoA/OtJbRq0G/CBpkG8HINH2S8SHJfZkIH7v56v l8nrN578CRWFDgh4aFYtw5H+KtxlXhSjkj7+mz0uBYOaY6Axby 39XYWCNQUahgZP2G5w9kY+MD7nCdG6ZP2+rD/07gOVCVh4M2+K 5snEOz46PdEYOzZ0Qz2Lgmb17olS7Ta0DoDhJfo/umOUgAA4zO q/0pk7TzjCg7aVK5efAleybmrS5Nf7O7kNB6RTy0FMs8Tv8rbp H0ptpBmU5hwXcrGsQSs824UtZc4gYKifhyDSJ7k+cVEOu3DuGf 2xYmJ/Jj9GqwqmmMw4qjaAiB83wkiWvfa9fptzaneNQwtIjQba JFZVT00dUqGgATKyqlS2lYNoCTtGxgVbd/zkboPdi 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/30/2014 07:27 AM, Vitalii Tymchyshyn wrote: > The fetching time is fully defined by a strategy that will be introduced > after step (2) is complete. Currently it's fully fetched on execute of > the first query, the main difference is that it's copied into a file and > not heap. OK, that's a bit saner, at least if you fetch small results to the heap then switch to file storage at some threshold. > As of multiple portals, we are talking about autocommit mode. It's > mostly about supporting this mode and not forcing user to start a > transaction or opening another connection. And I am against the idea of > driver making multiple connections as it will screw up a lot of > connection pooling scenarios and setups. What I'm asking is why the *application* doesn't just use multiple connections or use a transaction with portals. It's not clear to me why it's worth the complexity in the driver to work around what seems like problematic application behaviour. -- 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