summaryrefslogtreecommitdiff
path: root/src/backend/statistics
diff options
context:
space:
mode:
authorPeter Eisentraut2021-06-27 07:41:16 +0000
committerPeter Eisentraut2021-06-27 07:41:16 +0000
commitc302a6139072fed9410204fa9e751d95930e05ff (patch)
treeb713e14ba1495e581b36a5d593d398107e6fb385 /src/backend/statistics
parentdcffc9ba8a1e0ab1b0a57e9b9d38e3dc9960f83f (diff)
Error message refactoring
Take some untranslatable things out of the message and replace by format placeholders, to reduce translatable strings and reduce translation mistakes.
Diffstat (limited to 'src/backend/statistics')
-rw-r--r--src/backend/statistics/extended_stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c
index b05e818ba9..2e55913bc8 100644
--- a/src/backend/statistics/extended_stats.c
+++ b/src/backend/statistics/extended_stats.c
@@ -2274,7 +2274,8 @@ serialize_expr_stats(AnlExprData *exprdata, int nexprs)
if (!OidIsValid(typOid))
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
- errmsg("relation \"pg_statistic\" does not have a composite type")));
+ errmsg("relation \"%s\" does not have a composite type",
+ "pg_statistic")));
for (exprno = 0; exprno < nexprs; exprno++)
{