Re: typos (and more)
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers@postgresql.org, Tomas Vondra <tomas.vondra@enterprisedb.com>, Andres Freund <andres@anarazel.de>, Zhihong Yu <zyu@yugabyte.com>
Date: 2021-09-27T23:53:35Z
Lists: pgsql-hackers
On Mon, Sep 27, 2021 at 06:04:02PM -0300, Alvaro Herrera wrote:
> Initially we just used "statistic" as a noun, which IIRC was already
> grammatically wrong (but I didn't know that and I think Tomas didn't
> either); later at some point when discussing how to use that noun in
> plural we realized this and argued that merely using "statistics" was
> even more wrong. It was then that we started using the term "statistics
> object" with plural "statistics objects". Going back to using just
> "statistics" is unlikely to have become correct; I think Justin's
> patches 0008 and 0012 are correct.
Thanks for confirming.
if (list_length(pstate->p_rtable) != 1)
ereport(ERROR,
(errcode(ERRCODE_INVALID_COLUMN_REFERENCE),
- errmsg("statistics expressions can refer only to the table being indexed")));
+ errmsg("statistics expressions can refer only to the table being referenced")));
This part should be backpatched? The code claims that this should
be dead code so an elog() would be more adapted, and the same can be
said about transformRuleStmt() and transformIndexStmt(), no? That
would be less messages to translate.
--
Michael
Commits
-
Clarify use of "statistics objects" in the code
- 2cf9cf5d7b5e 14.1 landed
- 070d2e19e408 15.0 landed
-
Fix typos and grammar in code comments
- e767ddcd354b 15.0 landed
-
Fix typos in docs
- 55367378d785 9.6.24 landed
- 2ddf1c1be6c8 10.19 landed
- 23e83c35ad32 11.14 landed
- b7647c4260c4 12.9 landed
- 78515b89f298 13.5 landed
- e8b39cebdaf0 14.0 landed
- 7c1d8a243f8b 15.0 landed