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 1t6ht0-00EygZ-Uk for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Nov 2024 02:59:43 +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 1t6hsy-008WDn-5B for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Nov 2024 02:59:40 +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 1t6hsx-008WDe-On for pgsql-hackers@lists.postgresql.org; Fri, 01 Nov 2024 02:59:40 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6hss-0046xx-0Z for pgsql-hackers@lists.postgresql.org; Fri, 01 Nov 2024 02:59:39 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a9a156513a1so261995466b.0 for ; Thu, 31 Oct 2024 19:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730429973; x=1731034773; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=P+cBxVldsDFz8UiM8UJoabosy5p+5h2x7/Lb4FvK1yc=; b=Q2I4mU/A9pg4ZLt2aJWoZxX87gucaskn13S83CtnuhTbECqbdj4dOxA4n5YYZBzA76 zSaMHTPfmDkuLhTlGc+x6cPBrSyugVXC5lGcVUdCE/uI2jzQRQ+wKihsYb4iuiv02L4l h7Y0edo7jsvrVVdyj2FYz0KuaHZH8Bzdsy1MJ247TG2inrhCZOeal4yIEsaJob+n6S34 mFB584NzaEMT0HJvilAuFaw+h1VhYusr6yDMsJRw+C5dDOzlb1/N65xp9e7Cej7d4LL0 NPSWY8O5iDQsPasxaVI4zt8MGj1qO1+x+JlPpalhEbHQSoKRoU46c5c9wapEQ/SxRyFP M0rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730429973; x=1731034773; h=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=P+cBxVldsDFz8UiM8UJoabosy5p+5h2x7/Lb4FvK1yc=; b=jFLUkK2ZboCz4JOdZVOJ14oDArhxi68vqFC+BTh4QlN1f3OHJY5xBF478mmdR6cGib cj/XQVfxnuADDui/toFBsmSn3uw+Mffro3dKm80fQF/1Jm7tVE78twU9FiqEk2olAHYr yYmVbR8tbcLDFmcXUIvc09JJp40eqxfjfB6oqMyy+VIzu63FmK1dLlRNNHxJhcHvnUrx /fkRM0yRn4aoo5EoYnVylYNB2FSOOigrSe8uWCtEaQRRq1haANG7mGdd/HY7njKGf88u UZUSSpiYQ/5Bj2W6nrq+NYqgvgGgdgx9Gwhn90iDJAk1a2jKJaqLPaDhusMSD8fiT4Lh AXyA== X-Forwarded-Encrypted: i=1; AJvYcCV/x6zPXLy75ulN3kaTIKgNQHs4JapVqpV5lskKzbT4XvB5B2HUecNFvv0HkoxZu2emDqQ+pvVMDOqhtpJz@lists.postgresql.org X-Gm-Message-State: AOJu0YxDDA7iK4oH8/fGElVeM0r3HU+/clrdWfvGea9YyskKQAfFxvCi GvnwAyvdTLPQMES+mrMNARgtoN9kE95OTrn05fyKZmg+vgA6M33L/2iwd/3yJfCRqmHY1rmMVEJ hnaeYzXcbEIrBGJCMiZPp1sMdOEeXxJ8W X-Google-Smtp-Source: AGHT+IGoi3IwxEHImJZypl/LdLQP6xygewbaDyRahtZ4PLTUfCdTRYft5rwvVCkN9db2VuxxWSjzbkBI8cJ1iJ2+YA4= X-Received: by 2002:a17:907:96a0:b0:a99:5d01:dbd4 with SMTP id a640c23a62f3a-a9de633218cmr1982311766b.59.1730429972616; Thu, 31 Oct 2024 19:59:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tender Wang Date: Fri, 1 Nov 2024 10:59:21 +0800 Message-ID: Subject: Re: Wrong result when enable_partitionwise_join is on if collation of PartitionKey and Column is different. To: Amit Langote Cc: Junwang Zhao , jian he , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000d3a1200625d11f07" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d3a1200625d11f07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Amit Langote =E4=BA=8E2024=E5=B9=B410=E6=9C=8831= =E6=97=A5=E5=91=A8=E5=9B=9B 21:09=E5=86=99=E9=81=93=EF=BC=9A > > 0001 is the patch for the partitionwise grouping issue (bug #18568). > I concluded that even partial aggregate should be disallowed when the > grouping collation doesn't match partitioning collation. The result > with partial partitionwise grouping is not the same as when > enable_partitionwise_aggregate is off. > LGTM --=20 Thanks, Tender Wang --000000000000d3a1200625d11f07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Amit Langote <amitlangote09@gmail.com> =E4=BA=8E2024=E5=B9= =B410=E6=9C=8831=E6=97=A5=E5=91=A8=E5=9B=9B 21:09=E5=86=99=E9=81=93=EF=BC= =9A

0001 is the patch for the partitionwise grouping issue (bug #18568).
I concluded that even partial aggregate should be disallowed when the
grouping collation doesn't match partitioning collation. The result
with partial partitionwise grouping is not the same as when
enable_partitionwise_aggregate is off.

= LGTM=C2=A0


--
Thanks,
Tender Wang
--000000000000d3a1200625d11f07--