I wrote:
> Hm. I thought that this might be an old issue, but I'm not seeing the
> crash in pre-v14 branches. That means it's some bug introduced in
> the performance improvements I did a few months ago. Open item added.
git bisect says the trouble started with
ea1268f6301cc7adce571cc9c5ebe8d9342a2ef4 is the first bad commit
commit ea1268f6301cc7adce571cc9c5ebe8d9342a2ef4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat Feb 20 19:26:41 2021 -0500
Avoid generating extra subre tree nodes for capturing parentheses.
I probably won't be able to dig deeper for a little while.
regards, tom lane