From c302a6139072fed9410204fa9e751d95930e05ff Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 27 Jun 2021 09:41:16 +0200 Subject: Error message refactoring Take some untranslatable things out of the message and replace by format placeholders, to reduce translatable strings and reduce translation mistakes. --- src/backend/statistics/extended_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/statistics') 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++) { -- cgit v1.2.3