BUG #19752: GROUP BY on a constant and a cast to a length-limited array type crashes the server while planning

Edit
ID 7545
Title BUG #19752: GROUP BY on a constant and a cast to a length-limited array type crashes the server while planning
CI (CFBot) Summary
Stats (from CFBot) Patch version: v3, Patch count: 1, First patch: +143−10, All patches: +143−10
Tags Bugfix
Created 2026-10-28 12:25:27
Last modified 2026-10-28 12:25:27 (1 hour ago)
Latest email 2026-10-28 12:26:38 (1 hour ago)
Status
PG20-3 (2026-11-01 – 2026-11-30): Needs review
Target version
Authors Matheus Alcantara (matheus.alcantara)
Reviewers Become reviewer
Committer
Links
Emails
BUG #19752: GROUP BY on a constant and a cast to a length-limited array type crashes the server while planning
First at 2026-10-08 18:20:17 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-10-28 12:26:38 by Matheus Alcantara <matheusssilv97 at gmail.com>
Latest attachment (v3-0001-Don-t-replace-Var-free-subexpressions-with-grouped-V.patch) at 2026-10-26 09:16:29 from Andrey Rachitskiy <pl0h0yp1 at gmail.com>
    Attachment (v3-0001-Don-t-replace-Var-free-subexpressions-with-grouped-V.patch) at 2026-10-26 09:16:29 from Andrey Rachitskiy <pl0h0yp1 at gmail.com> (Patch: No)
    Attachment (v2-0001-Don-t-replace-Var-free-subexpressions-with-groupe.patch) at 2026-10-23 15:34:28 from "Matheus Alcantara" <matheusssilv97 at gmail.com> (Patch: No)
    Attachment (0001-Match-Const-GROUP-BY-items-by-targetlist-entry.patch) at 2026-10-08 21:21:07 from Andrey Rachitskiy <pl0h0yp1 at gmail.com> (Patch: Yes)
History
When Who What
2026-10-28 12:25:27 Matheus Alcantara (matheus.alcantara) Attached mail thread 19752-928339cd23b58a33@postgresql.org
2026-10-28 12:25:27 Matheus Alcantara (matheus.alcantara) Created patch record
Edit