public inbox for [email protected]
help / color / mirror / Atom feedFrom: Robert Haas <[email protected]>
To: Grzegorz Szpetkowski <[email protected]>
Cc: [email protected]
Subject: Re: 7.2. Table Expressions suggestion about NATURAL JOIN
Date: Mon, 13 Jun 2011 13:00:34 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Tue, May 17, 2011 at 9:47 PM, Grzegorz Szpetkowski
<[email protected]> wrote:
> http://www.postgresql.org/docs/9.0/static/queries-table-expressions.html
> http://www.postgresql.org/docs/9.0/static/sql-select.html
>
> Respectively:
>
> "Finally, NATURAL is a shorthand form of USING: it forms a USING list
> consisting of all column names that appear in both input tables. As
> with USING, these columns appear only once in the output table."
>
> and
>
> "NATURAL is shorthand for a USING list that mentions all columns in
> the two tables that have the same names."
>
> To make that comprehensive you can add something like: "Note that if
> there is no any "shared" column between tables, then NATURAL JOIN acts
> like ON TRUE (that is, tables are cross-joined)", because it's not
> obvious.
Done, with different wording.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
view thread (4+ messages)
reply
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: 7.2. Table Expressions suggestion about NATURAL JOIN
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox