diff options
author | David Rowley <drowley@postgresql.org> | 2021-06-11 13:38:04 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2021-06-11 13:38:04 +1200 |
commit | 04539e73faaaaa1c06c1407671910dceaffdfcd4 (patch) | |
tree | 1b08939c5e2532089345aa5acb50bcc187472195 /src/backend/executor/functions.c | |
parent | e56bce5d43789cce95d099554ae9593ada92b3b7 (diff) | |
download | postgresql-04539e73faaaaa1c06c1407671910dceaffdfcd4.tar.gz postgresql-04539e73faaaaa1c06c1407671910dceaffdfcd4.zip |
Use the correct article for abbreviations
We've accumulated quite a mix of instances of "an SQL" and "a SQL" in the
documents. It would be good to be a bit more consistent with these.
The most recent version of the SQL standard I looked at seems to prefer
"an SQL". That seems like a good lead to follow, so here we change all
instances of "a SQL" to become "an SQL". Most instances correctly use
"an SQL" already, so it also makes sense to use the dominant variation in
order to minimise churn.
Additionally, there were some other abbreviations that needed to be
adjusted. FSM, SSPI, SRF and a few others. Also fix some pronounceable,
abbreviations to use "a" instead of "an". For example, "a SASL" instead
of "an SASL".
Here I've only adjusted the documents and error messages. Many others
still exist in source code comments. Translator hint comments seem to be
the biggest culprit. It currently does not seem worth the churn to change
these.
Discussion: https://postgr.es/m/CAApHDvpML27UqFXnrYO1MJddsKVMQoiZisPvsAGhKE_tsKXquw%40mail.gmail.com
Diffstat (limited to 'src/backend/executor/functions.c')
-rw-r--r-- | src/backend/executor/functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c index 32668f85a1d..e2ea51aafe5 100644 --- a/src/backend/executor/functions.c +++ b/src/backend/executor/functions.c @@ -511,13 +511,13 @@ init_execution_state(List *queryTree_list, ((CopyStmt *) stmt->utilityStmt)->filename == NULL) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("cannot COPY to/from client in a SQL function"))); + errmsg("cannot COPY to/from client in an SQL function"))); if (IsA(stmt->utilityStmt, TransactionStmt)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), /* translator: %s is a SQL statement name */ - errmsg("%s is not allowed in a SQL function", + errmsg("%s is not allowed in an SQL function", CreateCommandName(stmt->utilityStmt)))); } |