Re: BUG #17583: Server crashes on executing CROSS JOIN with very big number of tables - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17583: Server crashes on executing CROSS JOIN with very big number of tables
Date
Msg-id 402040.1660418591@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17583: Server crashes on executing CROSS JOIN with very big number of tables  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> On Fri, Aug 12, 2022 at 5:03 PM Richard Guo <guofenglinux@gmail.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



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17585: Wrong path to the extension control file
Next
From: James Inform
Date:
Subject: Re: BUG #17584: SQL crashes PostgreSQL when using ICU collation