Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XVbVO-0003rX-Qx for pgsql-jdbc@arkaria.postgresql.org; Sun, 21 Sep 2014 07:24:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XVbVO-00058U-AC for pgsql-jdbc@arkaria.postgresql.org; Sun, 21 Sep 2014 07:24:22 +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 1XVbVN-00058N-AT for pgsql-jdbc@postgresql.org; Sun, 21 Sep 2014 07:24:21 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XVbVF-0001RA-W5 for pgsql-jdbc@postgresql.org; Sun, 21 Sep 2014 07:24:19 +0000 Received: from ayaki.localdomain (124-148-195-121.dyn.iinet.net.au [124.148.195.121]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0MddLo-1XfP9C2EPc-00PONz; Sun, 21 Sep 2014 09:24:11 +0200 Message-ID: <541E7D16.8040405@2ndquadrant.com> Date: Sun, 21 Sep 2014 15:24:06 +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: Thomas Kellerer , pgsql-jdbc@postgresql.org Subject: Re: Disk buffering of resultsets References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ENm7nbSvRkHAQF+RrxooXLxSurZsuZfjvmee9GS+yAy pKafyuJ5ZGUmX9c3BZocL+U5nGML1U/iAuYWb3moLJu3NNaFG0 BrfVjjgjEKjp+MbDBCQToCYq2ShzEJ2MIuYTJmfvwSFbyPuzXR ydFKN8/82ji+0DJwW13ZG7iywdwe/8JUaCGa/4wjwq513D3Umz ViPO7TEoNpx/RlkaHyj/zD9xh1HdBCtVB2d04Jt4ebwCfKoylk DhAdckjSo0Q2o9As2LPK/EbarRtAZuLfqrtGEx4Papc4o0xIT0 SUd0stvCBj+JhbIhcvGp5tVslm0htBipEf8hIfjl29PPfJyeu0 WG3ivVO4uFThMDfVsCfIjBMJgCsJurXvY/tuEbqQH X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.2 (--) 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 09/21/2014 03:06 PM, Thomas Kellerer wrote: > Wouldn't it make more sense to allow for a non-buffered result when > using auto-commit > (something like "bufferResults=false") instead? > > Or is that technically not possible due to the Postgres wire-protocol? If you expect the statement to have committed when the execute returns, then it's not practical. You could use a WITH HOLD cursor, but that'd be horribly inefficient; it basically forces the server to buffer the result instead. -- 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