Clarify use of "statistics objects" in the code
authorMichael Paquier <michael@paquier.xyz>
Wed, 29 Sep 2021 06:29:38 +0000 (15:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 29 Sep 2021 06:29:38 +0000 (15:29 +0900)
commit070d2e19e40897d857f570f24888fc30727ed9c0
tree5b6e54dd4c8edc3aca8d28e747412d9e1ea363ba
parent0b947c3101d1d05c55531731d6b778f82cb21350
Clarify use of "statistics objects" in the code

The code inconsistently used "statistic object" or "statistics" where
the correct term, as discussed, is actually "statistics object".  This
improves the state of the code to be more consistent.

While on it, fix an incorrect error message introduced in a4d75c8.  This
error should never happen, as the code states, but it would be
misleading.

Author: Justin Pryzby
Reviewed-by: Álvaro Herrera, Michael Paquier
Discussion: https://postgr.es/m/20210924215827.GS831@telsasoft.com
Backpatch-through: 14
src/backend/commands/statscmds.c
src/backend/commands/tablecmds.c
src/backend/parser/parse_utilcmd.c
src/backend/statistics/extended_stats.c
src/backend/utils/adt/selfuncs.c