mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
Quite limited support for subselects in clausesel.c.
Get rid of #ifdef INDEXSCAN_PATCH in indxpath.c.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.4 1997/09/08 21:44:47 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/clausesel.c,v 1.5 1998/02/13 03:29:36 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -273,12 +273,19 @@ compute_selec(Query *root, List *clauses, List *or_selectivities)
|
||||
/* this isn't an Oper, it's a Func!! */
|
||||
|
||||
/*
|
||||
* * This is not an operator, so we guess at the selectivity. *
|
||||
* THIS IS A HACK TO GET V4 OUT THE DOOR. FUNCS SHOULD BE * ABLE
|
||||
* TO HAVE SELECTIVITIES THEMSELVES. * -- JMH 7/9/92
|
||||
* This is not an operator, so we guess at the selectivity.
|
||||
* THIS IS A HACK TO GET V4 OUT THE DOOR. FUNCS SHOULD BE ABLE
|
||||
* TO HAVE SELECTIVITIES THEMSELVES. -- JMH 7/9/92
|
||||
*/
|
||||
s1 = 0.1;
|
||||
}
|
||||
else if (is_subplan ((Node *) clause))
|
||||
{
|
||||
/*
|
||||
* Just for the moment! FIX ME! - vadim 02/04/98
|
||||
*/
|
||||
s1 = 1.0;
|
||||
}
|
||||
else if (NumRelids((Node *) clause) == 1)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user