mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Correct misleading error messages
Commit 7d6d2c4bbd
dropped opcintype from the index AM strategy
translation API. But some error messages about failed lookups still
mentioned it, even though it was not used for the lookup. Fix by
removing ipcintype from the error messages as well.
This commit is contained in:
@ -2469,8 +2469,8 @@ GetOperatorFromCompareType(Oid opclass, Oid rhstype, CompareType cmptype,
|
|||||||
cmptype == COMPARE_EQ ? errmsg("could not identify an equality operator for type %s", format_type_be(opcintype)) :
|
cmptype == COMPARE_EQ ? errmsg("could not identify an equality operator for type %s", format_type_be(opcintype)) :
|
||||||
cmptype == COMPARE_OVERLAP ? errmsg("could not identify an overlaps operator for type %s", format_type_be(opcintype)) :
|
cmptype == COMPARE_OVERLAP ? errmsg("could not identify an overlaps operator for type %s", format_type_be(opcintype)) :
|
||||||
cmptype == COMPARE_CONTAINED_BY ? errmsg("could not identify a contained-by operator for type %s", format_type_be(opcintype)) : 0,
|
cmptype == COMPARE_CONTAINED_BY ? errmsg("could not identify a contained-by operator for type %s", format_type_be(opcintype)) : 0,
|
||||||
errdetail("Could not translate compare type %d for operator family \"%s\", input type %s, access method \"%s\".",
|
errdetail("Could not translate compare type %d for operator family \"%s\" of access method \"%s\".",
|
||||||
cmptype, get_opfamily_name(opfamily, false), format_type_be(opcintype), get_am_name(amid)));
|
cmptype, get_opfamily_name(opfamily, false), get_am_name(amid)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We parameterize rhstype so foreign keys can ask for a <@ operator
|
* We parameterize rhstype so foreign keys can ask for a <@ operator
|
||||||
|
@ -10330,8 +10330,8 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
|
|||||||
for_overlaps
|
for_overlaps
|
||||||
? errmsg("could not identify an overlaps operator for foreign key")
|
? errmsg("could not identify an overlaps operator for foreign key")
|
||||||
: errmsg("could not identify an equality operator for foreign key"),
|
: errmsg("could not identify an equality operator for foreign key"),
|
||||||
errdetail("Could not translate compare type %d for operator family \"%s\", input type %s, access method \"%s\".",
|
errdetail("Could not translate compare type %d for operator family \"%s\" of access method \"%s\".",
|
||||||
cmptype, get_opfamily_name(opfamily, false), format_type_be(opcintype), get_am_name(amid)));
|
cmptype, get_opfamily_name(opfamily, false), get_am_name(amid)));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There had better be a primary equality operator for the index.
|
* There had better be a primary equality operator for the index.
|
||||||
|
Reference in New Issue
Block a user