aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser/parse_expr.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-03-24 22:40:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-03-24 22:40:29 +0000
commit8899a2aba92c4a17f422172e7c9dd0e383eefa39 (patch)
treeaea400d25b0e9c32b84004728c995cd53ab33533 /src/include/parser/parse_expr.h
parenta09b9a36d3cc8e4c5cd2877b2b764dc14a78f58e (diff)
downloadpostgresql-8899a2aba92c4a17f422172e7c9dd0e383eefa39.tar.gz
postgresql-8899a2aba92c4a17f422172e7c9dd0e383eefa39.zip
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/include/parser/parse_expr.h')
-rw-r--r--src/include/parser/parse_expr.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/parser/parse_expr.h b/src/include/parser/parse_expr.h
index d5b87da1b7c..a8be03a5349 100644
--- a/src/include/parser/parse_expr.h
+++ b/src/include/parser/parse_expr.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/parser/parse_expr.h,v 1.32 2003/11/29 22:41:09 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/parser/parse_expr.h,v 1.33 2004/03/24 22:40:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -18,7 +18,6 @@
/* GUC parameters */
-extern int max_expr_depth;
extern bool Transform_null_equals;
@@ -26,6 +25,5 @@ extern Node *transformExpr(ParseState *pstate, Node *expr);
extern Oid exprType(Node *expr);
extern int32 exprTypmod(Node *expr);
extern bool exprIsLengthCoercion(Node *expr, int32 *coercedTypmod);
-extern void parse_expr_init(void);
#endif /* PARSE_EXPR_H */