diff options
author | Tom Lane | 2004-03-24 22:40:29 +0000 |
---|---|---|
committer | Tom Lane | 2004-03-24 22:40:29 +0000 |
commit | 8899a2aba92c4a17f422172e7c9dd0e383eefa39 (patch) | |
tree | aea400d25b0e9c32b84004728c995cd53ab33533 /src/backend/parser/parser.c | |
parent | a09b9a36d3cc8e4c5cd2877b2b764dc14a78f58e (diff) |
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.
Diffstat (limited to 'src/backend/parser/parser.c')
-rw-r--r-- | src/backend/parser/parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/parser/parser.c b/src/backend/parser/parser.c index 4e31e799726..54cc8a1c00c 100644 --- a/src/backend/parser/parser.c +++ b/src/backend/parser/parser.c @@ -14,7 +14,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/parser.c,v 1.60 2003/11/29 19:51:52 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/parser/parser.c,v 1.61 2004/03/24 22:40:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -50,7 +50,6 @@ raw_parser(const char *str) scanner_init(str); parser_init(); - parse_expr_init(); yyresult = yyparse(); |