diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 1999-02-07 16:17:14 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 1999-02-07 16:17:14 +0000 |
commit | ef590e101ec2e7fd4d2c80b925ce2188aa000bba (patch) | |
tree | df6c63a57a232ff236a5b0885857060f4feb5db3 /src/include/nodes/execnodes.h | |
parent | dd4a357dc9eeeafa0e8768ab3ae4ffaa4d8c2fcf (diff) | |
download | postgresql-ef590e101ec2e7fd4d2c80b925ce2188aa000bba.tar.gz postgresql-ef590e101ec2e7fd4d2c80b925ce2188aa000bba.zip |
Changed ExecConstraints() and ExecRelCheck() to cache the constraints
qualification expression trees in the execution state. Prevents from
memory exhaustion on INSERT, UPDATE or COPY to tables that have CHECK
constraints. Speedup against the variant using freeObject() is more than
factor 2.
Jan
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index d9cdd2509de..45625c62e7b 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: execnodes.h,v 1.22 1999/01/29 09:23:13 vadim Exp $ + * $Id: execnodes.h,v 1.23 1999/02/07 16:17:14 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -199,6 +199,7 @@ typedef struct EState Snapshot es_snapshot; List *es_range_table; RelationInfo *es_result_relation_info; + List **es_result_relation_constraints; Relation es_into_relation_descriptor; ParamListInfo es_param_list_info; ParamExecData *es_param_exec_vals; /* this is for subselects */ |