From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11325: Documentation Bug / RFE
Date: Mon, 1 Sep 2014 14:20:14 -0700 (PDT)
Message-ID: <1409606414605-5817249.post@n5.nabble.com> (raw)
In-Reply-To: <17622.1409604522@sss.pgh.pa.us>
References: <20140901154149.2921.14246@wrigleys.postgresql.org>
<17622.1409604522@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Tom Lane-2 wrote
> thomas@
> writes:
>> Two suggestions for "PostgreSQL 9.3.5 Documentation" (which is excellent
>> in
>> general, by the way :-)
>
>> 1) "Finally, NATURAL is a shorthand form of USING: it forms a USING list
>> consisting of all column
>> names that appear in both input tables."
>> Please clarify: All column names that appear in both input tables
>> (regardless of the SELECT clause), or all column names /listed in the
>> SELECT
>> clause/ that appear in both input tables?
>
> "All column names that appear in both input tables" seems perfectly
> clear to me. Where would you get the idea that it had something to
> do with the SELECT list?
>
>> 2) "with the exception that if ON is used there will be two columns a, b,
>> and c in the result"
>> Hard to understand. Suggestion:
>> "if ON is used, each column a, b, and c will appear twice in the result."
>
> Yeah, that's fair, though perhaps it would be better as "each of the
> columns a, b, and c will appear twice in the result".
Agree on both counts.
Though the entire "Thus, USING (a,b,c) ..." seems superfluous given the
subsequent example section. And given the 'furthermore' aspect of this it
isn't really "shorthand" for ON but it's own unique mechanic and syntax.
A comment in its own paragraph to the effect:
SELECT * output -
ON - all columns from T1 followed by all columns from T2
USING - all join columns, one copy each and in the listed order, followed by
non-join columns in T1 followed by non-join columns in T2
could be added while removing the "thus" paragraph in USING; as well as the
concept of shorthand.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-11325-Documentation-Bug-RFE-tp5817245p5817249.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: david.g.johnston@gmail.com
Subject: Re: BUG #11325: Documentation Bug / RFE
In-Reply-To: <1409606414605-5817249.post@n5.nabble.com>
References: <20140901154149.2921.14246@wrigleys.postgresql.org> <17622.1409604522@sss.pgh.pa.us> <1409606414605-5817249.post@n5.nabble.com>
* 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