Re: BUG #17583: Server crashes on executing CROSS JOIN with very big number of tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Егор Чиндяскин <kyzevan23(at)mail(dot)ru>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17583: Server crashes on executing CROSS JOIN with very big number of tables
Date: 2022-08-13 19:23:11
Message-ID: 402040.1660418591@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> On Fri, Aug 12, 2022 at 5:03 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
>> Function transformFromClauseItem() is driven to stack overflow. We need
>> to add some check_stack_depth() checks here and maybe other more places.

> Attach a patch to add the check for transformFromClauseItem.

Pushed. It's possible there are some other places, but I think most
of the parser doesn't need it because it'll call transformExpr which
already checks.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message James Inform 2022-08-13 21:48:01 Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation
Previous Message Tom Lane 2022-08-12 22:57:29 Re: BUG #17585: Wrong path to the extension control file