[PATCH] doc/queries.sgml: add missing comma

Started by Drew DeVaultover 4 years ago8 messagesdocs
Jump to latest
#1Drew DeVault
sir@cmpwn.com

Minor grammatical fix.
---
doc/src/sgml/queries.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml
index 516fbcbf37..0f3d9ce7f8 100644
--- a/doc/src/sgml/queries.sgml
+++ b/doc/src/sgml/queries.sgml
@@ -2172,7 +2172,7 @@ SELECT sum(n) FROM t;
   <note>
    <para>
-    Strictly speaking, this process is iteration not recursion, but
+    Strictly speaking, this process is iteration, not recursion, but
     <literal>RECURSIVE</literal> is the terminology chosen by the SQL standards
     committee.
    </para>
-- 
2.33.1
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Drew DeVault (#1)
Re: [PATCH] doc/queries.sgml: add missing comma

Drew DeVault <sir@cmpwn.com> writes:

Minor grammatical fix.

Hmm, I'm not sure that reads any better than before.

<para>
-    Strictly speaking, this process is iteration not recursion, but
+    Strictly speaking, this process is iteration, not recursion, but
<literal>RECURSIVE</literal> is the terminology chosen by the SQL standards

... although I think this text is mine, so naturally I'd think
that. Anyone else have an opinion?

regards, tom lane

#3David G. Johnston
david.g.johnston@gmail.com
In reply to: Tom Lane (#2)
Re: [PATCH] doc/queries.sgml: add missing comma

On Tue, Oct 19, 2021 at 2:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Drew DeVault <sir@cmpwn.com> writes:

Minor grammatical fix.

Hmm, I'm not sure that reads any better than before.

<para>
-    Strictly speaking, this process is iteration not recursion, but
+    Strictly speaking, this process is iteration, not recursion, but
<literal>RECURSIVE</literal> is the terminology chosen by the SQL

standards

... although I think this text is mine, so naturally I'd think
that. Anyone else have an opinion?

If I read that aloud to myself there is a comma after iteration.

That said, given that a comma and a "but" later we use the word "RECURSIVE"
the clarification that the process isn't recursion seems redundant. If one
knows what it means to be "recursive" then they will understand the
juxtaposition of "iteration" and "recursive" just fine. If they do not, I
don't think adding the word "recursion" is going to make much difference.

Thus:
Strictly speaking, this process is iteration, but
<literal>RECURSIVE</literal> is the terminology chosen by the SQL standards
committee."

Because the above sounds just fine, I'd argue that if one does leave "not
recursion" it should be set off by a comma.

David J.

#4Michael Paquier
michael@paquier.xyz
In reply to: David G. Johnston (#3)
Re: [PATCH] doc/queries.sgml: add missing comma

On Tue, Oct 19, 2021 at 06:41:54PM -0700, David G. Johnston wrote:

On Tue, Oct 19, 2021 at 2:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

... although I think this text is mine, so naturally I'd think
that. Anyone else have an opinion?

If I read that aloud to myself there is a comma after iteration.

Agreed, adding a comma feels more natural. Non-native speaker here,
however.
--
Michael

#5Bruce Momjian
bruce@momjian.us
In reply to: David G. Johnston (#3)
Re: [PATCH] doc/queries.sgml: add missing comma

On Tue, Oct 19, 2021 at 06:41:54PM -0700, David G. Johnston wrote:

On Tue, Oct 19, 2021 at 2:33 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Drew DeVault <sir@cmpwn.com> writes:

Minor grammatical fix.

Hmm, I'm not sure that reads any better than before.

     <para>
-    Strictly speaking, this process is iteration not recursion, but
+    Strictly speaking, this process is iteration, not recursion, but
      <literal>RECURSIVE</literal> is the terminology chosen by the SQL

standards

... although I think this text is mine, so naturally I'd think
that.  Anyone else have an opinion?

If I read that aloud to myself there is a comma after iteration.

That said, given that a comma and a "but" later we use the word "RECURSIVE" the
clarification that the process isn't recursion seems redundant.  If one knows
what it means to be "recursive" then they will understand the juxtaposition of
"iteration" and "recursive" just fine.  If they do not, I don't think adding
the word "recursion" is going to make much difference.

Thus:
Strictly speaking, this process is iteration, but <literal>RECURSIVE</literal>
is the terminology chosen by the SQL standards committee."

Because the above sounds just fine, I'd argue that if one does leave "not
recursion" it should be set off by a comma.

I went with new wording, which should make this even clearer; patch
attached.

--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com

Indecision is a decision. Inaction is an action. Mark Batterson

Attachments:

recursion.difftext/x-diff; charset=us-asciiDownload+1-1
#6Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#5)
Re: [PATCH] doc/queries.sgml: add missing comma

On 18.08.22 20:10, Bruce Momjian wrote:

Thus:
Strictly speaking, this process is iteration, but <literal>RECURSIVE</literal>
is the terminology chosen by the SQL standards committee."

Because the above sounds just fine, I'd argue that if one does leave "not
recursion" it should be set off by a comma.

I went with new wording, which should make this even clearer; patch
attached.

I think this whole note is a bit misleading, like the SQL people don't
know what recursion is. The point is that the query is defined
recursively. The evaluation process is iterative. Those two are not
contradictions.

#7Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#6)
Re: [PATCH] doc/queries.sgml: add missing comma

On Wed, Aug 24, 2022 at 07:58:04PM +0200, Peter Eisentraut wrote:

On 18.08.22 20:10, Bruce Momjian wrote:

Thus:
Strictly speaking, this process is iteration, but <literal>RECURSIVE</literal>
is the terminology chosen by the SQL standards committee."

Because the above sounds just fine, I'd argue that if one does leave "not
recursion" it should be set off by a comma.

I went with new wording, which should make this even clearer; patch
attached.

I think this whole note is a bit misleading, like the SQL people don't know
what recursion is. The point is that the query is defined recursively. The
evaluation process is iterative. Those two are not contradictions.

Okay, makes sense. Here is an updated patch.

--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com

Indecision is a decision. Inaction is an action. Mark Batterson

Attachments:

recursion.difftext/x-diff; charset=us-asciiDownload+2-3
#8Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#7)
Re: [PATCH] doc/queries.sgml: add missing comma

On Tue, Aug 30, 2022 at 02:18:42PM -0400, Bruce Momjian wrote:

On Wed, Aug 24, 2022 at 07:58:04PM +0200, Peter Eisentraut wrote:

On 18.08.22 20:10, Bruce Momjian wrote:

Thus:
Strictly speaking, this process is iteration, but <literal>RECURSIVE</literal>
is the terminology chosen by the SQL standards committee."

Because the above sounds just fine, I'd argue that if one does leave "not
recursion" it should be set off by a comma.

I went with new wording, which should make this even clearer; patch
attached.

I think this whole note is a bit misleading, like the SQL people don't know
what recursion is. The point is that the query is defined recursively. The
evaluation process is iterative. Those two are not contradictions.

Okay, makes sense. Here is an updated patch.

Patch applied back to PG 10.

--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com

Indecision is a decision. Inaction is an action. Mark Batterson