mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Provide adequate documentation of the "table_name *" notation.
Somewhere along the line, somebody decided to remove all trace of this notation from the documentation text. It was still in the command syntax synopses, or at least some of them, but with no indication what it meant. This will not do, as evidenced by the confusion apparent in bug #7543; even if the notation is now unnecessary, people will find it in legacy SQL code and need to know what it does.
This commit is contained in:
@@ -140,6 +140,16 @@ FROM <replaceable>table_reference</replaceable> <optional>, <replaceable>table_r
|
||||
— any columns added in subtables are ignored.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Instead of writing <literal>ONLY</> before the table name, you can write
|
||||
<literal>*</> after the table name to explicitly specify that descendant
|
||||
tables are included. Writing <literal>*</> is not necessary since that
|
||||
behavior is the default (unless you have changed the setting of the <xref
|
||||
linkend="guc-sql-inheritance"> configuration option). However writing
|
||||
<literal>*</> might be useful to emphasize that additional tables will be
|
||||
searched.
|
||||
</para>
|
||||
|
||||
<sect3 id="queries-join">
|
||||
<title>Joined Tables</title>
|
||||
|
||||
|
Reference in New Issue
Block a user