99 *
1010 *
1111 * IDENTIFICATION
12- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.144 2003/06/15 22:51:45 tgl Exp $
12+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.145 2003/07/25 00:01:06 tgl Exp $
1313 *
1414 *-------------------------------------------------------------------------
1515 */
@@ -490,7 +490,7 @@ extract_or_indexqual_conditions(RelOptInfo *rel,
490490}while (!DoneMatchingIndexKeys (classes ));
491491
492492if (FastListValue (& quals )== NIL )
493- elog (ERROR ,"extract_or_indexqual_conditions: no matching clause" );
493+ elog (ERROR ,"no matching OR clause" );
494494
495495return FastListValue (& quals );
496496}
@@ -1245,7 +1245,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
12451245if (!OidIsValid (test_op ))
12461246{
12471247/* This should not fail, else pg_amop entry is missing */
1248- elog (ERROR ,"Missing pg_amop entry for opclass %u strategy %d" ,
1248+ elog (ERROR ,"missing pg_amop entry for opclass %u strategy %d" ,
12491249opclass_id ,test_strategy );
12501250}
12511251
@@ -1281,7 +1281,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
12811281if (isNull )
12821282{
12831283/* Treat a null result as false ... but it's a tad fishy ... */
1284- elog (DEBUG2 ,"pred_test_simple_clause: null test result" );
1284+ elog (DEBUG2 ,"null predicate test result" );
12851285return false;
12861286}
12871287return DatumGetBool (test_result );
@@ -2055,7 +2055,8 @@ prefix_quals(Node *leftop, Oid opclass,
20552055break ;
20562056
20572057default :
2058- elog (ERROR ,"prefix_quals: unexpected opclass %u" ,opclass );
2058+ /* shouldn't get here */
2059+ elog (ERROR ,"unexpected opclass: %u" ,opclass );
20592060return NIL ;
20602061}
20612062
@@ -2078,7 +2079,7 @@ prefix_quals(Node *leftop, Oid opclass,
20782079prefix_const -> constvalue ));
20792080break ;
20802081default :
2081- elog (ERROR ,"prefix_quals: unexpectedconsttype %u" ,
2082+ elog (ERROR ,"unexpectedconst type: %u" ,
20822083prefix_const -> consttype );
20832084return NIL ;
20842085}
@@ -2093,7 +2094,7 @@ prefix_quals(Node *leftop, Oid opclass,
20932094{
20942095oproid = get_opclass_member (opclass ,BTEqualStrategyNumber );
20952096if (oproid == InvalidOid )
2096- elog (ERROR ,"prefix_quals: nooperator = for opclass %u" ,opclass );
2097+ elog (ERROR ,"no= operator for opclass %u" ,opclass );
20972098expr = make_opclause (oproid ,BOOLOID , false,
20982099 (Expr * )leftop , (Expr * )prefix_const );
20992100result = makeList1 (expr );
@@ -2107,7 +2108,7 @@ prefix_quals(Node *leftop, Oid opclass,
21072108 */
21082109oproid = get_opclass_member (opclass ,BTGreaterEqualStrategyNumber );
21092110if (oproid == InvalidOid )
2110- elog (ERROR ,"prefix_quals: nooperator >= for opclass %u" ,opclass );
2111+ elog (ERROR ,"no>= operator for opclass %u" ,opclass );
21112112expr = make_opclause (oproid ,BOOLOID , false,
21122113 (Expr * )leftop , (Expr * )prefix_const );
21132114result = makeList1 (expr );
@@ -2122,7 +2123,7 @@ prefix_quals(Node *leftop, Oid opclass,
21222123{
21232124oproid = get_opclass_member (opclass ,BTLessStrategyNumber );
21242125if (oproid == InvalidOid )
2125- elog (ERROR ,"prefix_quals: nooperator < for opclass %u" ,opclass );
2126+ elog (ERROR ,"no< operator for opclass %u" ,opclass );
21262127expr = make_opclause (oproid ,BOOLOID , false,
21272128 (Expr * )leftop , (Expr * )greaterstr );
21282129result = lappend (result ,expr );
@@ -2167,8 +2168,7 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
21672168is_eq = true;
21682169break ;
21692170default :
2170- elog (ERROR ,"network_prefix_quals: unexpected operator %u" ,
2171- expr_op );
2171+ elog (ERROR ,"unexpected operator: %u" ,expr_op );
21722172return NIL ;
21732173}
21742174
@@ -2180,15 +2180,13 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
21802180{
21812181opr1oid = get_opclass_member (opclass ,BTGreaterEqualStrategyNumber );
21822182if (opr1oid == InvalidOid )
2183- elog (ERROR ,"network_prefix_quals: no >= operator for opclass %u" ,
2184- opclass );
2183+ elog (ERROR ,"no >= operator for opclass %u" ,opclass );
21852184}
21862185else
21872186{
21882187opr1oid = get_opclass_member (opclass ,BTGreaterStrategyNumber );
21892188if (opr1oid == InvalidOid )
2190- elog (ERROR ,"network_prefix_quals: no > operator for opclass %u" ,
2191- opclass );
2189+ elog (ERROR ,"no > operator for opclass %u" ,opclass );
21922190}
21932191
21942192opr1right = network_scan_first (rightop );
@@ -2203,8 +2201,7 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
22032201
22042202opr2oid = get_opclass_member (opclass ,BTLessEqualStrategyNumber );
22052203if (opr2oid == InvalidOid )
2206- elog (ERROR ,"network_prefix_quals: no <= operator for opclass %u" ,
2207- opclass );
2204+ elog (ERROR ,"no <= operator for opclass %u" ,opclass );
22082205
22092206opr2right = network_scan_last (rightop );
22102207