Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWEFU-0006FC-Nx for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 00:46:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWEFU-0004Dm-3M for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Sep 2014 00:46:32 +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 1XWEFT-0004Dg-Fy for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 00:46:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWEFL-0005vo-Rh for pgsql-jdbc@postgresql.org; Tue, 23 Sep 2014 00:46:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s8N0kF1V001322; Mon, 22 Sep 2014 20:46:15 -0400 From: Tom Lane To: John R Pierce cc: List Subject: Re: Disk buffering of resultsets In-reply-to: <542091F0.10706@hogranch.com> References: <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> <54205F94.9010102@hogranch.com> <542091F0.10706@hogranch.com> Comments: In-reply-to John R Pierce message dated "Mon, 22 Sep 2014 14:17:36 -0700" Date: Mon, 22 Sep 2014 20:46:15 -0400 Message-ID: <1321.1411433175@sss.pgh.pa.us> X-Pg-Spam-Score: -2.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 John R Pierce writes: > this still won't address the issue that the postgresql server itself > ALSO marshals the entire result set into ITS memory before sending it to > the client. If it actually did that, then there would be an issue ... but it never has, and very likely never will. The server sends rows on-the-fly as they're computed. That is indeed the very reason that client libraries tend to want to accumulate full resultsets: they're hiding that behavior from applications, so as to make it look like you get either an error or a full resultset, not some rows and then an error. regards, tom lane -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc