pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every

pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every

pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every

pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every

pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every

pgsql: Check for interrupts and stack overflow in TParserGet().

2023-06-24 Thread Tom Lane
Check for interrupts and stack overflow in TParserGet(). TParserGet() recurses for some token types, meaning it's possible to drive it to stack overflow. Since this is a minority behavior, I chose to add the check_stack_depth() call to the two places that recurse rather than doing it during every