From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Josh Soref <jsoref@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Possible spelling fixes
Date: Mon, 6 Feb 2017 11:40:28 +0200
Message-ID: <b3bf24f5-fa00-9c20-3c92-9b652e7e0917@iki.fi> (raw)
In-Reply-To: <CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com>
References: <CACZqfqBgOT=96WnEjVH59dfBrJzh-of+k8p0Q=Ku7dfaugV5wA@mail.gmail.com>
<20170206021526.ttqcii633rmlqp3l@alap3.anarazel.de>
<CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 02/06/2017 04:50 AM, Josh Soref wrote:
> It's now split more or less to your suggestion:
> https://github.com/jsoref/postgres/commits/spelling
Thanks!
I pushed most of these. Except for the below:
> optimisation -> optimization et al.
Most of our code is written with the American spelling, but the British
spelling isn't wrong, so I don't want to go around changing them all.
> NUL-terminated -> NULL-terminated
When we're talking about NUL-terminated strings, NUL refers to the NUL
ASCII character. NULL usually refers to a NULL pointer. We're probably
not consistent about this, but in this context, NUL-terminated isn't
wrong, so let's leave them as they are.
> Ooops -> Oops
"Oops" is more idiomatic, but this doesn't really seem worth changing.
Maybe "Ooops" indicates a slightly bigger mistake than "oops" :-)
> re-entrancy -> reentrancy
Googling around, I can see both spellings being used. "Re-entrancy"
actually feels more natural to me, although I'm not sure which is more
correct. Let's leave them as they are.
> passthru -> passthrough
"Passthrough" is clearly the correct spelling (or "pass-through"?), but
"passthru" seems OK in the context, as an informal shorthand.
> --- a/src/backend/tsearch/dict_thesaurus.c
> +++ b/src/backend/tsearch/dict_thesaurus.c
> @@ -23,7 +23,7 @@
>
>
> /*
> - * Temporay we use TSLexeme.flags for inner use...
> + * Temporary we use TSLexeme.flags for inner use...
> */
> #define DT_USEASIS 0x1000
Looking at the code real quick, I couldn't understand the original
meaning of this. Is it:
* DT_USEASIS is a temporary value we use for something. For what?
* DT_USEASIS is used temporarily for something. Does this mean,
"temporarily" until we get around to write the code differently, or does
it happen temporarily at runtime, or what?
Just fixing the typo doesn't help much here, and I'm not sure if it
should be "temporary" or "temporarily" anyway.
> --- a/contrib/spi/timetravel.c
> +++ b/contrib/spi/timetravel.c
> @@ -51,7 +51,7 @@ static EPlan *find_plan(char *ident, EPlan **eplan, int *nplans);
> * and stop_date eq INFINITY [ and update_user eq current user ]
> * and all other column values as in new tuple, and insert tuple
> * with old data and stop_date eq current date
> - * ELSE - skip updation of tuple.
> + * ELSE - skip UPDATE of tuple.
> * 2. IF a delete affects tuple with stop_date eq INFINITY
> * then insert the same tuple with stop_date eq current date
> * [ and delete_user eq current user ]
I wasn't sure if this changes the meaning of the comment slightly. An
"UPDATE" in all-caps refers to an UPDATE statement, is that what's meant
here? Or just updating a tuple, i.e. should this rather be "skip
updating of the tuple" or "skip update of tuple"?
> --- a/src/test/regress/sql/errors.sql
> +++ b/src/test/regress/sql/errors.sql
> @@ -2,7 +2,7 @@
> -- ERRORS
> --
>
> --- bad in postquel, but ok in postsql
> +-- bad in postquel, but ok in PostgreSQL
> select 1;
This "postsql" refers to the SQL dialect of PostgreSQL, rather than
PostgreSQL the project. I don't remember seeing it called "postsql"
anywhere else, though. We hardly care about what was an error in
postqual anyway, though, so perhaps this should be rewritten into
something else entirely, like "This is not allowed by the SQL standard,
but ok on PostgreSQL" (assuming that's correct, I'm not 100% sure). Or
just leave it alone.
Thanks for the fixes! I was particularly impressed that you caught the
typo in Marcel Kornacker's surname.
- Heikki
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: hlinnaka@iki.fi, jsoref@gmail.com, andres@anarazel.de
Subject: Re: Possible spelling fixes
In-Reply-To: <b3bf24f5-fa00-9c20-3c92-9b652e7e0917@iki.fi>
References: <CACZqfqBgOT=96WnEjVH59dfBrJzh-of+k8p0Q=Ku7dfaugV5wA@mail.gmail.com> <20170206021526.ttqcii633rmlqp3l@alap3.anarazel.de> <CACZqfqCf+5qRztLPgmmosr-B0Ye4srWzzw_mo4c_8_B_mtjmJQ@mail.gmail.com> <b3bf24f5-fa00-9c20-3c92-9b652e7e0917@iki.fi>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox