mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Remove un-needed braces around single statements.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.5 1998/02/26 04:32:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.6 1998/06/15 19:28:41 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -128,9 +128,7 @@ create_or_index_paths(Query *root,
|
||||
create_or_index_paths(root, rel, lnext(clauses)));
|
||||
}
|
||||
else
|
||||
{
|
||||
t_list = create_or_index_paths(root, rel, lnext(clauses));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -237,21 +235,13 @@ best_or_subclause_index(Query *root,
|
||||
Cost subclause_selec;
|
||||
|
||||
if (constant_on_right)
|
||||
{
|
||||
value = ((Const *) get_rightop(subclause))->constvalue;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = NameGetDatum("");
|
||||
}
|
||||
if (constant_on_right)
|
||||
{
|
||||
flag = (_SELEC_IS_CONSTANT_ || _SELEC_CONSTANT_RIGHT_);
|
||||
}
|
||||
else
|
||||
{
|
||||
flag = _SELEC_CONSTANT_RIGHT_;
|
||||
}
|
||||
index_selectivity(lfirsti(index->relids),
|
||||
index->classlist,
|
||||
lconsi(opno, NIL),
|
||||
|
Reference in New Issue
Block a user