mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Type names should not be quoted
Our actual convention, contrary to what I said in 59a2111b23
, is not to
quote type names, as evidenced by unquoted use of format_type_be()
result value in error messages. Remove quotes from recently tweaked
messages accordingly.
Per note from Tom Lane
This commit is contained in:
@ -275,7 +275,7 @@ ValidateRestrictionEstimator(List *restrictionName)
|
||||
if (get_func_rettype(restrictionOid) != FLOAT8OID)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("restriction estimator function %s must return type \"%s\"",
|
||||
errmsg("restriction estimator function %s must return type %s",
|
||||
NameListToString(restrictionName), "float8")));
|
||||
|
||||
/* Require EXECUTE rights for the estimator */
|
||||
@ -321,7 +321,7 @@ ValidateJoinEstimator(List *joinName)
|
||||
if (get_func_rettype(joinOid) != FLOAT8OID)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
|
||||
errmsg("join estimator function %s must return type \"%s\"",
|
||||
errmsg("join estimator function %s must return type %s",
|
||||
NameListToString(joinName), "float8")));
|
||||
|
||||
/* Require EXECUTE rights for the estimator */
|
||||
|
Reference in New Issue
Block a user