1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Add safety check on expression nesting depth. Default value is set by

a config.h #define, and the runtime value can be controlled via SET.
This commit is contained in:
Tom Lane
2000-03-17 05:29:07 +00:00
parent 341b328b18
commit 0e314d747e
7 changed files with 143 additions and 37 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: parse_expr.h,v 1.17 2000/02/26 21:11:09 tgl Exp $
* $Id: parse_expr.h,v 1.18 2000/03/17 05:29:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -20,9 +20,12 @@
#define EXPR_COLUMN_FIRST 1
#define EXPR_RELATION_FIRST 2
extern int max_expr_depth;
extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence);
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 */