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 1sjIIX-00H4lR-Cs for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Aug 2024 13:01:17 +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 1sjIIV-004jru-H7 for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Aug 2024 13:01:16 +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 1sjIIV-004jrb-3z for pgsql-hackers@lists.postgresql.org; Wed, 28 Aug 2024 13:01:15 +0000 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sjIIS-001qUU-Mk for pgsql-hackers@lists.postgresql.org; Wed, 28 Aug 2024 13:01:14 +0000 Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e165ab430e7so6914317276.2 for ; Wed, 28 Aug 2024 06:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724850071; x=1725454871; 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=iVQ9U0Zoh9IZUZMCIVhEnebq4DRq6xLlCD5Mx9DkYcw=; b=K4b3YSdW0dree9n1uXdPR5YtKajhNXPsRtxM4ge5ZKAYqutQQeLZ2XkD17/3D8Jn5z 60cz8JNQijYt8D9b5PKUmiryWJ1cmjmDK6/QlFahhEsYj0ez+ozdDPtpxSeK0ZoenCUx 53Ay94CNtqcywS0nKEs2NqBcBe62PZ2zIsdyPn5sSytIYQRoVWwPM+PM+X9iByXu8YFj fe61pMPNKya4u3WycpRkN9gDIzZBiSWwXo+WslDN3beCUle70E8Mahwx98GjhB7ucz+o IHz/oKDGAjWMriaVd7ELJeYykxUGG5TnpdLT37eROLnlhUDHg1EOiGAsfHG+cxURKaHQ Z4YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724850071; x=1725454871; 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=iVQ9U0Zoh9IZUZMCIVhEnebq4DRq6xLlCD5Mx9DkYcw=; b=nVjcYmUSr2OVIcwmRMUNDfBpjyAjbQYkcZF88S64uzLPV4NBpOJVYkIUQq3rDJ9s+Z 0ZwQIPExt1Sz0doIK61kDRekpTRiLR9ucW9HnH58bWs2deE3eUV58XkThsPLfpRV2V3l ojlmZ61C0ZKkpix5/K1O7Nj9txO5s9WHFJtY2tD+mmiJTjfoVeCJ3MJIoGvCrUkBWc3X np27xlyfv8sAH6qhaLYAhlOGZaVKaM5ACs7+mIJiVV7Wa33anpvrsZaIrNdl6KXLJMt6 7qmnVOZReF91q8vbov58BaGHTcD4TY8Mi9pZrfY3ww8jckWH3q0+1da1tCwSq6kn64tB UuUg== X-Forwarded-Encrypted: i=1; AJvYcCWQ4f2l6Ckn/HrRn6d8Ik3u+RGnalnLjxz/JFajD6tYngR5zPt82l/2YzVWTswgWY3oH12DpArB2RU4F0VZ@lists.postgresql.org X-Gm-Message-State: AOJu0Yx88Tn9RoL1ic1KE7OVD+I/DaRWg/0xZP/tU1kskWM++OcnMHQC TkZS0BfDI5RgntEv9Ro32n+HY1+p2LrAPbIv4B42IoV0Yl9GmMpqtXsngTKLm61RCItF4bmMR8J O36c2l1UMQC4Q+yQJ+UW3sasv3qg= X-Google-Smtp-Source: AGHT+IFGVxUVAkRcOtPtxLRM54aigx7JVbKl9Jts1bfZNa81FCTqfoX8XucMFqtVH+vlsfvNlmFxlzBX+oEupzSoM98= X-Received: by 2002:a05:690c:6ac8:b0:6bd:5245:5e24 with SMTP id 00721157ae682-6c625b4539bmr195362237b3.21.1724850071007; Wed, 28 Aug 2024 06:01:11 -0700 (PDT) MIME-Version: 1.0 References: <87il22cj51.fsf@163.com> In-Reply-To: From: Robert Haas Date: Wed, 28 Aug 2024 09:00:57 -0400 Message-ID: Subject: Re: Eager aggregation, take 3 To: Tender Wang Cc: Richard Guo , Paul George , Andy Fan , PostgreSQL-development , pgsql-hackers@lists.postgresql.org 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 Tue, Aug 27, 2024 at 11:57=E2=80=AFPM 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. Interesting to know. > 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 OK. > 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. Yeah, this is one of the things I was worried about in my previous reply to Richard. It would be worth Richard, or someone, probing into exactly why that's happening. My fear is that we just don't have good enough estimates to make good decisions, but there might well be another explanation. > I will continue to do benchmark on this feature. > > [1] https://github.com/tenderwg/eager_agg Thanks! --=20 Robert Haas EDB: http://www.enterprisedb.com