aboutsummaryrefslogtreecommitdiff
path: root/src/backend/statistics/extended_stats.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-06-27 09:41:16 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-06-27 09:41:16 +0200
commitc302a6139072fed9410204fa9e751d95930e05ff (patch)
treeb713e14ba1495e581b36a5d593d398107e6fb385 /src/backend/statistics/extended_stats.c
parentdcffc9ba8a1e0ab1b0a57e9b9d38e3dc9960f83f (diff)
downloadpostgresql-c302a6139072fed9410204fa9e751d95930e05ff.tar.gz
postgresql-c302a6139072fed9410204fa9e751d95930e05ff.zip
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/extended_stats.c')
-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 b05e818ba9e..2e55913bc8f 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++)
{