Clarify use of "statistics objects" in the code
authorMichael Paquier
Wed, 29 Sep 2021 06:29:45 +0000 (15:29 +0900)
committerMichael Paquier
Wed, 29 Sep 2021 06:29:45 +0000 (15:29 +0900)
commit2cf9cf5d7b5e66202389618a4c08945da352b35c
tree3e7f6d201f5caaaa736fd983bc5fcf9713a2562a
parent2a27dbaeb9088718baa25bc97f2e049e063412db
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[email protected]
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