From a3f1c3673fb56752ebb1c6d9bab0706e7f8ae7ac Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Fri, 13 Feb 1998 03:29:39 +0000 Subject: Quite limited support for subselects in clausesel.c. Get rid of #ifdef INDEXSCAN_PATCH in indxpath.c. --- src/backend/optimizer/path/indxpath.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/backend/optimizer/path/indxpath.c') diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c index 2fc43e0fdab..50d8fb934eb 100644 --- a/src/backend/optimizer/path/indxpath.c +++ b/src/backend/optimizer/path/indxpath.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.12 1997/11/20 23:21:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.13 1998/02/13 03:29:39 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -614,13 +614,8 @@ match_clause_to_indexkey(Rel *rel, /* * Check for standard s-argable clause */ -#ifdef INDEXSCAN_PATCH - /* Handle also function parameters. DZ - 27-8-1996 */ if ((rightop && IsA(rightop, Const)) || (rightop && IsA(rightop, Param))) -#else - if (rightop && IsA(rightop, Const)) -#endif { restrict_op = ((Oper *) ((Expr *) clause)->oper)->opno; isIndexable = @@ -634,13 +629,8 @@ match_clause_to_indexkey(Rel *rel, /* * Must try to commute the clause to standard s-arg format. */ -#ifdef INDEXSCAN_PATCH - /* ...And here... - vadim 01/22/97 */ else if ((leftop && IsA(leftop, Const)) || (leftop && IsA(leftop, Param))) -#else - else if (leftop && IsA(leftop, Const)) -#endif { restrict_op = get_commutator(((Oper *) ((Expr *) clause)->oper)->opno); -- cgit v1.2.3