Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cagwD-0006V1-DY for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2017 10:54:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cagwC-0003jF-IL for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Feb 2017 10:54:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cagul-0001Mr-0c for pgsql-hackers@postgresql.org; Mon, 06 Feb 2017 10:52:55 +0000 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1caguh-0003FQ-D2 for pgsql-hackers@postgresql.org; Mon, 06 Feb 2017 10:52:53 +0000 Received: by mail-it0-x244.google.com with SMTP id 203so8206587ith.2 for ; Mon, 06 Feb 2017 02:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:message-id:date:subject:from :in-reply-to:references:to:cc; bh=wkNF2ZHp3YcSboyVaQwO89YjBtpRDUoXdrjUE+5zQaQ=; b=hfSBMVr8mX4cLe1wHTvklvjBcLqgbPZydnjhXqgVZibqTCwNESc0dNNzIQHcQDJBb5 iSHdQ/KwhS+8wAEWrnRuji9ZDFpXdalxzhiiHWK/p6h2VY4SKx+u2qdp+tXYlgA3VafO yAN8tUdfdlQ0fERGLWQTy+DO3QsnbBmvm6n0U+5LHIb8h5x7tPY33vwiMUUJgQg9Gzm6 gCtGmcJqMouXUpvTDwShd9eiMIrHKTDd8g2w1keHS9wKPWAeHF6v4gs+Q2p4VtMe3ZWe wJYD+3MGxvnSMiQp+2fdQvaSyBCm/IPUQ7q2mcr6noVDdwRUHHms1pYw05vDrbRriWk8 4jNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :message-id:date:subject:from:in-reply-to:references:to:cc; bh=wkNF2ZHp3YcSboyVaQwO89YjBtpRDUoXdrjUE+5zQaQ=; b=XOfXuWmXbg61hv+1h0X7L4nIJqHzcxVd4NQZy3rCSIXCBDhBxuXahr3D5LbQ/t8FWb bvHN3YczBGhK4TIKVWskhmfO7IY4zXS6hckR2PiT0X3vWMlYwPntXks5cc99LpyiIh9B LEEsqgJ4mCOTfO+iEizlaTvgRzRKjjk6ykCGsxNFwui/HYarJep5m7Ky/jrxnzLNT7ub mdIplywOmc6k0ECoZUW4ovBKez3eoOtJWjfSkVrYrmsKMoSQsCJhZI0rr1qxeRrI0n33 ZY0nqVmojyvDdyVaJRQ1QpEIOoOKw8xg3b5JICd4mBeBACDguFgmrmB595GX8eJPrk1v cbzg== X-Gm-Message-State: AIkVDXJtckk1qAKjevqh8qJ/k0rsMhiVwBgTGP1zwdAb67k+xFCqJl5/eu6di1LEJC52Vw== X-Received: by 10.36.7.5 with SMTP id f5mr6725662itf.33.1486378370356; Mon, 06 Feb 2017 02:52:50 -0800 (PST) Received: from [127.0.0.1] (135-23-187-91.cpe.pppoe.ca. [135.23.187.91]) by smtp.gmail.com with ESMTPSA id t39sm7511246ioe.12.2017.02.06.02.52.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Feb 2017 02:52:49 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.2.2876) Message-ID: <20170206105248.4902991.81306.2285@gmail.com> Date: Mon, 06 Feb 2017 05:52:48 -0500 Subject: Re: Possible spelling fixes From: Josh Soref In-Reply-To: References: <20170206021526.ttqcii633rmlqp3l@alap3.anarazel.de> To: Heikki Linnakangas , Andres Freund Cc: pgsql-hackers@postgresql.org X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Heikki wrote: =E2=80=8E>=C2=A0I 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. Sure As you'll see, my approach is to aim for consistency. If you used en-GB 99%= of the time, I'd have offered a change to enforce that. I have a personal = preference, but there's no obligation, and I understand the potential costs= churn entails (I see you backported to branches).=C2=A0 > 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 poin= ter. This wasn't even in my original set (i.e. The dictionary I'm using didn't c= onsider NUL to be misspelled). I ran across it while splitting comments out= per Andres and figured I'd offer it as well.=C2=A0 > We're probably not consistent about this, Hrm, I was going to say "that's correct, you aren't", but rereading, I real= ize that I'd have to review every instance in order to prove to myself that= statement. I could make the weaker argument that "nul-terminated" should b= e changed to either NUL-terminated or null-terminated . My general approach= is to only make changes when I can detect an inconsistency. And I generall= y tend toward "majority rule". Here, I think the corpus has 4 spellings, and it sounds like it should only= have two, but probably=C2=A0(NUL- and null-) not the two I picked (NULL- a= nd null-).=C2=A0 > but in this context, NUL-terminated isn't wrong, so let's leave them as t= hey are. But that's OK. My goal in posting these is to encourage people to consider = their code.=C2=A0 >> Ooops -> Oops > "Oops" is more idiomatic, but this doesn't really seem worth changing.=20 Technically oops is in dictionaries whereas the other isn't, but I understo= od the intent.=C2=A0 > Maybe "Ooops" indicates a slightly bigger mistake than "oops" :-) That seemed like the intent. It's certainly not unreasonable to retain it. = It's also why I generally offer a queue, so people can reject families of c= hanges.=C2=A0 >> re-entrancy -> reentrancy > Googling around, I can see both spellings being used. Both are used, but reentrancy is in most dictionaries (and encyclopedias) a= nd is the form that's used in instruction (certainly it was when I studied = in university, and it isn't likely to regress). It's akin to email vs e-mai= l. Once the dashless form becomes accepted (within a domain [1]), it's the = correct form, and the other was merely transitional.=C2=A0 > "Re-entrancy" actually feels more natural to me, although I'm not sure wh= ich is more correct. > Let's leave them as they are. Sure=C2=A0 >> passthru -> passthrough > "Passthrough" is clearly the correct spelling (or "pass-through"?), The former is also present in the codebase. (I didn't look for the latter, = for the same reason as the previous note.) > but "passthru" seems OK in the context, as an informal shorthand. My goal is consistency. If you always spell a concept a single way, then gr= epping for that concept is easier and more reliable.=C2=A0 I personally recognize quite a few flavors, because they're usable for talk= ing to Coverity / Purify.=C2=A0 >> - * Temporay we use TSLexeme.flags for inner use... >> + * Temporary we use TSLexeme.flags for inner use... > Looking at the code real quick, I couldn't understand the original=20 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 diffe= rently, or does=20 > 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. Apparently I didn't look at this one much at all. I believe temporarily is = the intended word (fwiw, I originally mis-corrected directly as directory, = that I did spot before submitting). And probably as a runtime concept.=C2=A0 But I'm not volunteering to fix all comments in the project ;-). After spel= ling fixes, I'm more likely to try actual bugs / usability issues. I have a= specific bug which bit me, but fixing that would require more effort than = a spelling pass and more cooperation. I tend to do a spelling pass to deter= mine if the more expensive activity is viable. So far, the project is welco= ming :-) so, perhaps I'll manage to write the real fix... > 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 o= f tuple"? I'm not certain. I do understand that capital UPDATE is special. This one p= eople more familiar with the project will have to resolve.=C2=A0 Fwiw, if it's the former, you could omit the "of". > This "postsql" refers to the SQL dialect of PostgreSQL, I had to look up the other dialect from that line to decide it wasn't a spe= lling error.=C2=A0 > rather than PostgreSQL the project. > I don't remember seeing it called "postsql" anywhere else, though. Nothing within the corpus I was changing shared that spelling, otherwise it= too would have been changed :)=C2=A0 Oddly, this specific thing feels like a Deja-vu. I wonder if I started a sp= elling fix series for Postgres a decade ago or something... > 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,=C2=A0but ok on PostgreSQL" > (assuming that's correct, I'm not 100% sure). > Or just leave it alone. I'd encourage you to find something that's meaningful and correct.=C2=A0 > Thanks for the fixes! =C2=A0=C2=A0 You're welcome. Thanks for the quick handling. Some projects take months. Or never respond. > I was particularly impressed that you caught the typo in Marcel Kornacker= 's surname. My tools identify both spellings as incorrect (and all possibly misspelled = words are listed alphabetically), which means that I have the opportunity t= o choose a correct spelling -- generally I'll Google if I'm concerned becau= se there is insufficient preference within a corpus. Did you want me to submit emails for the remaining portions from=C2=A0 https://github.com/jsoref/postgres/commits/spelling =C2=A0[1]=C2=A0https://en.m.wikipedia.org/wiki/Reentrant --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers