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 1v6gA5-0085KC-2Y for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 02:13:45 +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 1v6gA2-00EiCE-RU for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 02:13:43 +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 1v6gA2-00EiBy-ID; Thu, 09 Oct 2025 02:13:43 +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.96) (envelope-from ) id 1v6gA0-000loo-22; Thu, 09 Oct 2025 02:13:42 +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 5992DSdN2799577; Wed, 8 Oct 2025 22:13:28 -0400 From: Tom Lane To: Richard Guo cc: Robert Haas , David Rowley , Tender Wang , Paul George , Andy Fan , PostgreSQL-development , pgsql-hackers@lists.postgresql.org, Matheus Alcantara Subject: Re: Eager aggregation, take 3 In-reply-to: References: <87il22cj51.fsf@163.com> message dated "Thu, 09 Oct 2025 10:51:03 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2799575.1759976008.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 08 Oct 2025 22:13:28 -0400 Message-ID: <2799576.1759976008@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > On Wed, Oct 8, 2025 at 11:45 PM Robert Haas wrote: >> For what it's worth, I also don't like that field name. I'm not sure >> what to propose instead, but I don't think apply_at is very clear. > This field represents the set of relids at which partial aggregation > is applied. So how about naming it partial_agg_designated_relids? > That feels a bit verbose, though. How about partial_agg_relids or, > for brevity, agg_relids instead? I might be missing a subtlety here, but how about "apply_aggregation_at" or "apply_partial_agg_at"? I don't think including "relids" in the field name adds anything, given the field's declared type and comments. regards, tom lane