due to lack of check for recursing into a null subexpression.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.42 1999/04/26 00:37:46 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/setrefs.c,v 1.43 1999/04/29 00:20:27 tgl Exp $
*
*-------------------------------------------------------------------------
*/
List *t;
List *agg_list = NIL;
+ if (clause == NULL)
+ return NIL;
+
if (IsA(clause, Var))
{
TargetEntry *subplanVar;
{
List *t;
+ if (clause == NULL)
+ return clause;
+
if (IsA(clause, Var))
return clause;
else if (is_funcclause(clause))
{
List *t;
+ if (clause == NULL)
+ return targetlist_so_far;
+
if (IsA(clause, Var))
{
RelOptInfo tmp_rel;
{
List *t;
+ if (clause == NULL)
+ return;
+
if (IsA(clause, Var))
{
/* Ignore vars elsewhere in the having clause, since the