Replace max_expr_depth parameter with a max_stack_depth parameter that
Tom Lane <tgl@sss.pgh.pa.us>
Replace max_expr_depth parameter with a max_stack_depth parameter that is measured in kilobytes and checked against actual physical execution stack depth, as per my proposal of 30-Dec. This gives us a fairly bulletproof defense against crashing due to runaway recursive functions.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/runtime.sgml | modified | +21 −13 |
| src/backend/executor/execQual.c | modified | +16 −1 |
| src/backend/optimizer/util/clauses.c | modified | +9 −1 |
| src/backend/parser/parse_expr.c | modified | +3 −33 |
| src/backend/parser/parser.c | modified | +1 −2 |
| src/backend/tcop/postgres.c | modified | +74 −1 |
| src/backend/utils/misc/guc.c | modified | +11 −10 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +3 −2 |
| src/bin/psql/tab-complete.c | modified | +2 −2 |
| src/include/miscadmin.h | modified | +9 −4 |
| src/include/parser/parse_expr.h | modified | +1 −3 |
| src/include/pg_config_manual.h | modified | +1 −6 |
| src/include/tcop/tcopprot.h | modified | +6 −1 |