mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add a regression test to verify that the stack depth checker actually
works (and max_stack_depth is not set too high for the platform). Inspired by trouble report from Brian Betts.
This commit is contained in:
@ -367,3 +367,10 @@ INT4
|
||||
UNIQUE
|
||||
NOT
|
||||
NULL);
|
||||
|
||||
-- Check that stack depth detection mechanism works and
|
||||
-- max_stack_depth is not set too high
|
||||
create function infinite_recurse() returns int as
|
||||
'select infinite_recurse()' language sql;
|
||||
\set VERBOSITY terse
|
||||
select infinite_recurse();
|
||||
|
Reference in New Issue
Block a user