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 1sjUur-001Fzt-R4 for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Aug 2024 02:29:41 +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 1sjUup-00DPT7-Rz for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Aug 2024 02:29:40 +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 1sjUup-00DPSz-Ic for pgsql-hackers@lists.postgresql.org; Thu, 29 Aug 2024 02:29:40 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sjUun-001wUP-Of for pgsql-hackers@lists.postgresql.org; Thu, 29 Aug 2024 02:29:38 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-6b0c5b1adfaso1800937b3.0 for ; Wed, 28 Aug 2024 19:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724898577; x=1725503377; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=umSZoZLvsB67Kq6x0ptzS1CsdOwclnDmJIR5qPNXSsc=; b=YTz2OEZj+qBemBEb4RPDTXctmU8zdZ/95YwRyDq6VOcTawpGNjGKwjzghGoYbr7Li1 ItQSeHLnqgwk4z9aBhtgEkZQn53AeAEXLUEXltk3F2UQLd4Kps2QHeAPcwCvYB3uo+u8 6u7v1Y6DmLnKakh4Bd9ZQr6X9Po/yA7qfcEHVxRYLuYfNPGWxPjAcXFb8zxkvqP6URUz CfBdE4q0qI4ezHeQbGksN66FF0wf/axSNshKH9GuzXcSc4ffIIwxMR7mQtZlScC9xgrq pOAaRuImC9Gov59Clgoy+ilAuRH7xSbFD+Olr4/paLjCo1+lEET5GJkfcbtpHM50QvQf S/4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724898577; x=1725503377; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=umSZoZLvsB67Kq6x0ptzS1CsdOwclnDmJIR5qPNXSsc=; b=uNzomyVt3DcShbNcsBM3EkD2K75PW4BsncdVtMn3OOEjK6QN0+RC8wud6KrL4GIMJ3 RbR6XUlrpwqRVUIQ84jTjjAn7WEIh8scBWfqnTbPGpzLO4u6NFuEq8q+N+LIIf8lmLkw zQ9XCatSPyDsZtDR9J4YRW8HcYA5SGa1JjmQkEbU/NMOM5glyhb+jCdy6VIV2STlvmCk 624lBArTAojoQrF+5BHankhdUi3Ioh5WqLNd7CStHf6A54iC2SlFo6lT0uNJLC59h2Dd z0A1JiQNDy+a7F/kDPKru00ySfGPmtyqV9Ds4QgCoE9hsXJUi9YjquTNEbnpr3BWXHd5 Ow6w== X-Forwarded-Encrypted: i=1; AJvYcCVMlS8xPZTYh5C+jM3NxC6EtY0DHs+CRhtWBpbKxpquePiJf/MPB5BDqC5q2zyuf9SBJVKAo0ldquydssfY@lists.postgresql.org X-Gm-Message-State: AOJu0YzVTpJZP5rfOQboEFKBSpa4BsGswGV7UKpufceba0YZX7JGzkBb XkZib6zehc4RZXBwj7/IPfH3YyHD8CvMwH/AhADWHVq85pZ189DE3WWACsjoQQmzVSUn1QgMUUr LiOF6e3YA+z/stjJ3+SXW5iSQCCE= X-Google-Smtp-Source: AGHT+IHYf2AS21VqCDnlS2zxmunU1DVULT6ZxuDTFmbbE3pcEB9njkToFw85MmFpTWwnFrWe1TosquJM8FouOzqwHoY= X-Received: by 2002:a05:690c:6501:b0:6b0:d571:353d with SMTP id 00721157ae682-6d277d65228mr16213207b3.40.1724898577012; Wed, 28 Aug 2024 19:29:37 -0700 (PDT) MIME-Version: 1.0 References: <87il22cj51.fsf@163.com> In-Reply-To: From: Richard Guo Date: Thu, 29 Aug 2024 10:29:26 +0800 Message-ID: Subject: Re: Eager aggregation, take 3 To: Tender Wang Cc: Paul George , Andy Fan , PostgreSQL-development , pgsql-hackers@lists.postgresql.org, Robert Haas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Aug 28, 2024 at 11:57=E2=80=AFAM Tender Wang w= rote: > Rectenly, I do some benchmark tests, mainly on tpch and tpcds. > tpch tests have no plan diff, so I do not continue to test on tpch. > tpcds(10GB) tests have 22 plan diff as below: > 4.sql, 5.sql, 8.sql,11.sql,19.sql,23.sql,31.sql, 33.sql,39.sql,45.sql,46.= sql,47.sql,53.sql, > 56.sql,57.sql,60.sql,63.sql,68.sql,74.sql,77.sql,80.sql,89.sql > > I haven't look all of them. I just pick few simple plan test(e.g. 19.sql,= 45.sql). > For example, 19.sql, eager agg pushdown doesn't get large gain, but a lit= tle > performance regress. > > I will continue to do benchmark on this feature. Thank you for running the benchmarks. That really helps a lot. Thanks Richard