1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

There, now we support GiST...now what? :)

This commit is contained in:
Marc G. Fournier
1996-08-26 06:32:06 +00:00
parent fe87dbb140
commit a2740a455f
24 changed files with 279 additions and 99 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.1.1.1 1996/07/09 06:21:32 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.2 1996/08/26 06:30:51 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -523,6 +523,19 @@ _equalEState(EState *a, EState *b)
return (true);
}
static bool
_equalTargetEntry(TargetEntry *a, TargetEntry *b)
{
if (!equal(a->resdom,b->resdom))
return(false);
if (!equal(a->fjoin,b->fjoin))
return(false);
if (!equal(a->expr,b->expr))
return(false);
return(true);
}
/*
* equal -- are two lists equal?
@@ -582,6 +595,9 @@ equal(void *a, void *b)
case T_Expr:
retval = _equalExpr(a, b);
break;
case T_TargetEntry:
retval = _equalTargetEntry(a,b);
break;
case T_Iter:
retval = _equalIter(a, b);
break;