Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XgYrT-00065m-Sf for pgsql-jdbc@arkaria.postgresql.org; Tue, 21 Oct 2014 12:48:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XgYrS-0004Es-NX for pgsql-jdbc@arkaria.postgresql.org; Tue, 21 Oct 2014 12:48:26 +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 1XgYrQ-0004Ej-Po for pgsql-jdbc@postgresql.org; Tue, 21 Oct 2014 12:48:24 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XgYrG-0007MV-Qy for pgsql-jdbc@postgresql.org; Tue, 21 Oct 2014 12:48:22 +0000 Received: from ayaki.localdomain ([194.224.59.233]) by mrelayeu.kundenserver.de (node=mreue006) with ESMTP (Nemesis) id 0M0GPh-1XzbsL0N1p-00uchi; Tue, 21 Oct 2014 14:48:08 +0200 Message-ID: <54465606.6090602@2ndquadrant.com> Date: Tue, 21 Oct 2014 20:48: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: Dave Cramer , Vitalii Tymchyshyn CC: Enrico Olivelli - Diennea , Tom Lane , 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:LDcFWG42nEEiHnXND7pbG4PhpGBzMrFSjWYrR49zYjv 6fe8/3iNfNxij9/fHLfw7EXu+33mxvNbO4LfAjon41+K4JB7un sF/fHfP2rwo09w4Sl/D3U6DOxowUfzewmSb6KqUY3MPjpkQ5Co seUos9aUUW5qtvdx/64fqt9aBJKtXtWchoUcJgT2g3Xair5WMB He7yWDNptrDZqhATTG+VDe6SMdf2jx0qH7dZW8/ZmFH3+wEmCN HprxuxXS46lV3MYJd322Vs/vt/ihByI/ITC3Vlm02gLMnkjFaM Z3ELXCTDL8Mwl7J/bYMt+gaEWr/hi8Sx+uu3oDcI8e2LyMJXWf EjlS5vySOH7jl+uleVKeRq5LBIsT6umdE8mS7lpNa X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.5 (--) 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 07:06 PM, Dave Cramer wrote: > Hi Vitalii, > > Thanks for this. I am headed for pgconf, hopefully I will have time to > look at it on the plane. Great that you're coming. I'm still concerned by this patch, particularly the fact that it doesn't properly use partial result set fetching at the protocol level, or didn't last time I looked. I really think it should be restricted to v3 protocol support and use partial EXECUTE. I'm generally opposed to the idea of the next query incurring the cost of fetching remaining results from the prior one, and possibly throwing an unrelated exception. That's IMO just wrong. I'm not at all convinced we shouldn't be using server-side portals, and possibly a client-supplied helper thread pool. I really don't like hijacking a possibly unrelated thread (that's trying to run the next statement) to do work deferred by a prior connection. Instead we should probably: WARNING: Discarding unfetched results from prior connection HINT: To avoid this warning, explicitly close() the result set or fully read it before running a new statement. or even make it an ERROR. -- 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