Re: 7.2.1. The FROM Clause

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: jochen(dot)bandhauer(at)gmx(dot)net, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: 7.2.1. The FROM Clause
Date: 2026-06-14 20:09:34
Message-ID: 36df7ebde5717e34d88228266c8aef21dc6e8c75.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Fri, 2026-06-12 at 09:58 +0000, PG Doc comments form wrote:
> I have a question regarding:
> https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-FROM
> Is the following sentence from the docu correct?
> "Instead of writing ONLY before the table name, you can write * after the
> table name to explicitly specify that descendant tables are included."
>
> I read it like you can use "* after the table name" instead of "ONLY before
> the table name" which seems wrong.

The "instead" does not mean that "tab *" is a substitute for "ONLY tab",
but is meant to mean that you cannot use both at the same time, like "ONLY tab *".

But I understand your confusion. To be honest, I only learned about the syntax
"tab *" a few days ago. Digging through the history, this syntax has been
obsolete since 2000. I think we could remove both the paragraph that confuses
you and the asterisk from the syntax diagram. We can leave the obsolete
syntax to accomodate SQL code that hasn't changed for over 25 years, but I don't
see a reason to keep it in the documentation.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Tom Lane 2026-06-14 20:40:34 Re: 7.2.1. The FROM Clause
Previous Message PG Doc comments form 2026-06-12 09:58:36 7.2.1. The FROM Clause