9
9
*
10
10
*
11
11
* 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 $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -490,7 +490,7 @@ extract_or_indexqual_conditions(RelOptInfo *rel,
490
490
} while (!DoneMatchingIndexKeys (classes ));
491
491
492
492
if (FastListValue (& quals ) == NIL )
493
- elog (ERROR , "extract_or_indexqual_conditions: no matching clause" );
493
+ elog (ERROR , "no matching OR clause" );
494
494
495
495
return FastListValue (& quals );
496
496
}
@@ -1245,7 +1245,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
1245
1245
if (!OidIsValid (test_op ))
1246
1246
{
1247
1247
/* 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" ,
1249
1249
opclass_id , test_strategy );
1250
1250
}
1251
1251
@@ -1281,7 +1281,7 @@ pred_test_simple_clause(Expr *predicate, Node *clause)
1281
1281
if (isNull )
1282
1282
{
1283
1283
/* 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" );
1285
1285
return false;
1286
1286
}
1287
1287
return DatumGetBool (test_result );
@@ -2055,7 +2055,8 @@ prefix_quals(Node *leftop, Oid opclass,
2055
2055
break ;
2056
2056
2057
2057
default :
2058
- elog (ERROR , "prefix_quals: unexpected opclass %u" , opclass );
2058
+ /* shouldn't get here */
2059
+ elog (ERROR , "unexpected opclass: %u" , opclass );
2059
2060
return NIL ;
2060
2061
}
2061
2062
@@ -2078,7 +2079,7 @@ prefix_quals(Node *leftop, Oid opclass,
2078
2079
prefix_const -> constvalue ));
2079
2080
break ;
2080
2081
default :
2081
- elog (ERROR , "prefix_quals: unexpected consttype %u" ,
2082
+ elog (ERROR , "unexpected const type: %u" ,
2082
2083
prefix_const -> consttype );
2083
2084
return NIL ;
2084
2085
}
@@ -2093,7 +2094,7 @@ prefix_quals(Node *leftop, Oid opclass,
2093
2094
{
2094
2095
oproid = get_opclass_member (opclass , BTEqualStrategyNumber );
2095
2096
if (oproid == InvalidOid )
2096
- elog (ERROR , "prefix_quals: no operator = for opclass %u" , opclass );
2097
+ elog (ERROR , "no = operator for opclass %u" , opclass );
2097
2098
expr = make_opclause (oproid , BOOLOID , false,
2098
2099
(Expr * ) leftop , (Expr * ) prefix_const );
2099
2100
result = makeList1 (expr );
@@ -2107,7 +2108,7 @@ prefix_quals(Node *leftop, Oid opclass,
2107
2108
*/
2108
2109
oproid = get_opclass_member (opclass , BTGreaterEqualStrategyNumber );
2109
2110
if (oproid == InvalidOid )
2110
- elog (ERROR , "prefix_quals: no operator >= for opclass %u" , opclass );
2111
+ elog (ERROR , "no >= operator for opclass %u" , opclass );
2111
2112
expr = make_opclause (oproid , BOOLOID , false,
2112
2113
(Expr * ) leftop , (Expr * ) prefix_const );
2113
2114
result = makeList1 (expr );
@@ -2122,7 +2123,7 @@ prefix_quals(Node *leftop, Oid opclass,
2122
2123
{
2123
2124
oproid = get_opclass_member (opclass , BTLessStrategyNumber );
2124
2125
if (oproid == InvalidOid )
2125
- elog (ERROR , "prefix_quals: no operator < for opclass %u" , opclass );
2126
+ elog (ERROR , "no < operator for opclass %u" , opclass );
2126
2127
expr = make_opclause (oproid , BOOLOID , false,
2127
2128
(Expr * ) leftop , (Expr * ) greaterstr );
2128
2129
result = lappend (result , expr );
@@ -2167,8 +2168,7 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
2167
2168
is_eq = true;
2168
2169
break ;
2169
2170
default :
2170
- elog (ERROR , "network_prefix_quals: unexpected operator %u" ,
2171
- expr_op );
2171
+ elog (ERROR , "unexpected operator: %u" , expr_op );
2172
2172
return NIL ;
2173
2173
}
2174
2174
@@ -2180,15 +2180,13 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
2180
2180
{
2181
2181
opr1oid = get_opclass_member (opclass , BTGreaterEqualStrategyNumber );
2182
2182
if (opr1oid == InvalidOid )
2183
- elog (ERROR , "network_prefix_quals: no >= operator for opclass %u" ,
2184
- opclass );
2183
+ elog (ERROR , "no >= operator for opclass %u" , opclass );
2185
2184
}
2186
2185
else
2187
2186
{
2188
2187
opr1oid = get_opclass_member (opclass , BTGreaterStrategyNumber );
2189
2188
if (opr1oid == InvalidOid )
2190
- elog (ERROR , "network_prefix_quals: no > operator for opclass %u" ,
2191
- opclass );
2189
+ elog (ERROR , "no > operator for opclass %u" , opclass );
2192
2190
}
2193
2191
2194
2192
opr1right = network_scan_first (rightop );
@@ -2203,8 +2201,7 @@ network_prefix_quals(Node *leftop, Oid expr_op, Oid opclass, Datum rightop)
2203
2201
2204
2202
opr2oid = get_opclass_member (opclass , BTLessEqualStrategyNumber );
2205
2203
if (opr2oid == InvalidOid )
2206
- elog (ERROR , "network_prefix_quals: no <= operator for opclass %u" ,
2207
- opclass );
2204
+ elog (ERROR , "no <= operator for opclass %u" , opclass );
2208
2205
2209
2206
opr2right = network_scan_last (rightop );
2210
2207
0 commit comments