diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-08-26 06:32:06 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-08-26 06:32:06 +0000 |
commit | a2740a455f558a1b8b9cd1962f92980efa4a984a (patch) | |
tree | 6f52d29248743f100fa40c32cef2cd48043c43f5 /src/backend/nodes | |
parent | fe87dbb1403c557bee85115ebe12b69f9ee92ed3 (diff) | |
download | postgresql-a2740a455f558a1b8b9cd1962f92980efa4a984a.tar.gz postgresql-a2740a455f558a1b8b9cd1962f92980efa4a984a.zip |
There, now we support GiST...now what? :)
Diffstat (limited to 'src/backend/nodes')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 18 | ||||
-rw-r--r-- | src/backend/nodes/parsenodes.h | 4 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index d2dbef2bea2..54cafe47dc0 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -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; diff --git a/src/backend/nodes/parsenodes.h b/src/backend/nodes/parsenodes.h index f2c7c591095..d8ca5b9243e 100644 --- a/src/backend/nodes/parsenodes.h +++ b/src/backend/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.4 1996/08/24 20:48:31 scrappy Exp $ + * $Id: parsenodes.h,v 1.5 1996/08/26 06:30:54 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -218,6 +218,7 @@ typedef struct IndexStmt { Node *whereClause; /* qualifications */ List *rangetable; /* range table, filled in by transformStmt() */ + bool *lossy; /* is index lossy? */ } IndexStmt; /* ---------------------- @@ -655,6 +656,7 @@ typedef struct IndexElem { char *name; /* name of index */ List *args; /* if not NULL, function index */ char *class; + TypeName *tname; /* type of index's keys (optional) */ } IndexElem; /* |