Re: to_tsquery stack overflow - Mailing list pgsql-bugs

From Tom Lane
Subject Re: to_tsquery stack overflow
Date
Msg-id 27418.1188482950@sss.pgh.pa.us
Whole thread Raw
In response to to_tsquery stack overflow  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
List pgsql-bugs
"Heikki Linnakangas" <heikki@enterprisedb.com> writes:
> The problem seems to be unbounded recursion in the makepol function that
> converts the input query from infix to polish notation. An easy fix
> would be to just add a level parameter to makepol that's incremented on
> each recursion, and throw an error if it grows bigger than some safe
> limit.

check_stack_depth() seems the correct fix.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3589: /etc/init.d/postgresql reload doesn't reflect /etc/postgresql/postgresql.conf log_statement
Next
From: Cyrus Downey
Date:
Subject: Re: BUG #3587: EXECUTE and trigger problem [VASCL:A1226546842]