I got server crashed while executing the following query: (echo "SELECT * FROM t1 ";for((i=2;i<100000;i++));do echo "CROSS JOIN t$i ";done; echo ";") | psql with the following backtrace below: Core was generated by `postgres: egorchin egorchin [local] SELECT
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.