mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Fixed all elog related warnings, as well as a few others.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.78 2000/01/09 00:26:34 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.79 2000/01/15 02:59:30 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -168,7 +168,7 @@ create_scan_node(Query *root, Path *best_path, List *tlist)
|
||||
break;
|
||||
|
||||
default:
|
||||
elog(ERROR, "create_scan_node: unknown node type",
|
||||
elog(ERROR, "create_scan_node: unknown node type: %d",
|
||||
best_path->pathtype);
|
||||
break;
|
||||
}
|
||||
@@ -234,7 +234,7 @@ create_join_node(Query *root, JoinPath *best_path, List *tlist)
|
||||
inner_tlist);
|
||||
break;
|
||||
default:
|
||||
elog(ERROR, "create_join_node: unknown node type",
|
||||
elog(ERROR, "create_join_node: unknown node type: %d",
|
||||
best_path->path.pathtype);
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.43 2000/01/12 00:53:21 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.44 2000/01/15 02:59:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -410,7 +410,7 @@ restriction_selectivity(Oid functionObjectId,
|
||||
elog(ERROR, "restriction_selectivity: bad pointer");
|
||||
|
||||
if (*result < 0.0 || *result > 1.0)
|
||||
elog(ERROR, "restriction_selectivity: bad value %lf", *result);
|
||||
elog(ERROR, "restriction_selectivity: bad value %f", *result);
|
||||
|
||||
return (Selectivity) *result;
|
||||
}
|
||||
@@ -446,7 +446,7 @@ join_selectivity(Oid functionObjectId,
|
||||
elog(ERROR, "join_selectivity: bad pointer");
|
||||
|
||||
if (*result < 0.0 || *result > 1.0)
|
||||
elog(ERROR, "join_selectivity: bad value %lf", *result);
|
||||
elog(ERROR, "join_selectivity: bad value %f", *result);
|
||||
|
||||
return (Selectivity) *result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user