aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeAgg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
-rw-r--r--src/backend/executor/nodeAgg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/executor/nodeAgg.c b/src/backend/executor/nodeAgg.c
index 0eed756319a..dbb86bb0f7d 100644
--- a/src/backend/executor/nodeAgg.c
+++ b/src/backend/executor/nodeAgg.c
@@ -491,7 +491,10 @@ ExecAgg(Agg *node)
* As long as the retrieved group does not match the
* qualifications it is ignored and the next group is fetched
*/
- qual_result = ExecQual(fix_opids(node->plan.qual), econtext);
+ if(node->plan.qual != NULL){
+ qual_result = ExecQual(fix_opids(node->plan.qual), econtext);
+ }
+
if (oneTuple)
pfree(oneTuple);
}