summaryrefslogtreecommitdiff
path: root/src/backend/commands/alter.c
diff options
context:
space:
mode:
authorTom Lane2017-05-14 14:54:47 +0000
committerTom Lane2017-05-14 14:55:01 +0000
commitf04c9a61468904b6815b2bc73a48878817766e0e (patch)
treeb8eb1b9a131023b1ab0f7e151e036988d02eb8a3 /src/backend/commands/alter.c
parent12ad38b3b4b5004001a525e0a0eda2ec45329e8e (diff)
Standardize terminology for pg_statistic_ext entries.
Consistently refer to such an entry as a "statistics object", not just "statistics" or "extended statistics". Previously we had a mismash of terms, accompanied by utter confusion as to whether the term was singular or plural. That's not only grating (at least to the ear of a native English speaker) but could be outright misleading, eg in error messages that seemed to be referring to multiple objects where only one could be meant. This commit fixes the code and a lot of comments (though I may have missed a few). I also renamed two new SQL functions, pg_get_statisticsextdef -> pg_get_statisticsobjdef pg_statistic_ext_is_visible -> pg_statistics_obj_is_visible to conform better with this terminology. I have not touched the SGML docs other than fixing those function names; the docs certainly need work but it seems like a separable task. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/commands/alter.c')
-rw-r--r--src/backend/commands/alter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/alter.c b/src/backend/commands/alter.c
index 2c6435b7598..bc897e409c0 100644
--- a/src/backend/commands/alter.c
+++ b/src/backend/commands/alter.c
@@ -123,7 +123,7 @@ report_namespace_conflict(Oid classId, const char *name, Oid nspOid)
break;
case StatisticExtRelationId:
Assert(OidIsValid(nspOid));
- msgfmt = gettext_noop("statistics \"%s\" already exists in schema \"%s\"");
+ msgfmt = gettext_noop("statistics object \"%s\" already exists in schema \"%s\"");
break;
case TSParserRelationId:
Assert(OidIsValid(nspOid));