Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrkVg-002UCO-GH for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 20:13:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rrkVf-00Bfb5-IB for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 20:13:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrkVf-00Bfa4-8V for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2024 20:13:31 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrkVc-000F1A-T0 for pgsql-hackers@postgresql.org; Tue, 02 Apr 2024 20:13:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 432KDNRA1748583; Tue, 2 Apr 2024 16:13:23 -0400 From: Tom Lane To: "Daniel Verite" cc: Laurenz Albe , PostgreSQL Hackers , Robert Haas , Jakub Wartak Subject: Re: psql's FETCH_COUNT (cursor) is not being respected for CTEs In-reply-to: References: Comments: In-reply-to "Daniel Verite" message dated "Tue, 02 Apr 2024 22:09:04 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1748581.1712088803.1@sss.pgh.pa.us> Date: Tue, 02 Apr 2024 16:13:23 -0400 Message-ID: <1748582.1712088803@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Daniel Verite" writes: > Tom Lane wrote: >> I do not buy that psql's FETCH_COUNT mode is a sufficient reason >> to add it. FETCH_COUNT mode is not something you'd use >> non-interactively > I should say that I've noticed significant latency improvements with > FETCH_COUNT retrieving large resultsets, such that it would benefit > non-interactive use cases. Do you have a theory for why that is? It's pretty counterintuitive that it would help at all. regards, tom lane