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 1sPmqo-006KYm-UQ for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 17:36:02 +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 1sPmql-00C8gW-VM for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jul 2024 17:36:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPmql-00C8gN-KE for pgsql-hackers@lists.postgresql.org; Fri, 05 Jul 2024 17:36:00 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPmqe-000aep-83 for pgsql-hackers@postgresql.org; Fri, 05 Jul 2024 17:35:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=xXZmW8DPoimO7ZXCKl8x6prN6te6AWttQHruWxxo79k=; b=Xnupf EA6TUTo+SJjBANbeNfDAxymnCGJPHJ8DnslKqTvgZXQ3Qp5lqhw2W6cUu/z+IjMKVwSId32MG2GQ6 9EUM3x7oILU8OG45GCEwSDZaUoTcLcCKHCJA10Uedhblqet/HcsX+7wiWsarmOtH4nGUEiL6FVtQk iTzAllVgRtW0wpV5cLVgIi4nmGirueOfyA02ldfm8hI/SE4dfV96sJxom7cyA68oPfyfphcdpkFyy ZsPLY2MSmgLJCbyhTQlMFZBIhYV35TuGuzYFBJvtZN9+TcW+IVT1Od5dqIWUbM/fxXZMsmhqd1djP KH8OVk1lX8calFzs3c/scPIZe0myQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1sPmqV-007VNY-1m; Fri, 05 Jul 2024 13:35:43 -0400 Date: Fri, 5 Jul 2024 13:35:43 -0400 From: Bruce Momjian To: "Fujii.Yuki@df.MitsubishiElectric.co.jp" Cc: Jelte Fennema-Nio , PostgreSQL-development , Robert Haas , Tom Lane , Stephen Frost , Andres Freund , Tomas Vondra , Julien Rouhaud , Daniel Gustafsson , vignesh C , Alexander Pyhalov Subject: Re: Partial aggregates pushdown Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jun 30, 2024 at 09:42:19PM +0000, Fujii.Yuki@df.MitsubishiElectric.co.jp wrote: > On Mon, Jun 24, 2024 at 6:09?PM Jelte Fennema-Nio wrote: > > 4. Related to 3, I think it would be good to have some tests of > > PARTIAL_AGGREGATE that don't involve postgres_fdw at all. I also > > spotted some comments too that mention FDW, even though they apply to > > the "pure" PARTIAL_AGGREGATE code. > > 5. This comment now seems incorrect: > > - * Apply the agg's finalfn if one is provided, else return transValue. > > + * If the agg's finalfn is provided and PARTIAL_AGGREGATE keyword is > > + * not specified, apply the agg's finalfn. > > + * If PARTIAL_AGGREGATE keyword is specified and the transValue type > > + * is internal, apply the agg's serialfn. In this case the agg's > > + * serialfn must not be invalid. Otherwise return transValue. > > > > 6. These errors are not on purpose afaict (if they are a comment in > > the test would be good to explain why) > > > > +SELECT b, avg(a), max(a), count(*) FROM pagg_tab GROUP BY b ORDER BY 1; > > +ERROR: could not connect to server "loopback" > > +DETAIL: invalid connection option "partial_aggregate_support" > Fixed. Is there a reason the documentation is no longer a part of this patch? Can I help you keep it current? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.