Re: SEQUENCE NAME syntax not documented for ALTER TABLE - Mailing list pgsql-docs

From Rene Saarsoo
Subject Re: SEQUENCE NAME syntax not documented for ALTER TABLE
Date
Msg-id CAMHv0CuK7+BaR=gimvCcw_9pRS+9eoxi8pTFvmz5wBq1OCyKNw@mail.gmail.com
Whole thread Raw
In response to Re: SEQUENCE NAME syntax not documented for ALTER TABLE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-docs
On Sun, 23 Mar 2025 at 17:31, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Where do you see a pointer to CREATE SEQUENCE on that page?

Sorry, my mistake. The page only points to ALTER SEQUENCE.

Now I also see that separate section about ADD GENERATED etc,
which I completely missed earlier. I was searching for a definition of
sequence_options which is nowhere to be found on that page.
So I searched for the next best thing sequence_option (in singular)
and found the SET sequence_option section. I expected the definition
of sequence_options to just be the plural of sequence_option.
But confusingly it's not.

I personally would really prefer if this information was part of the main
syntax diagram, not somewhere deep inside the text. But I might be
an odd user of the documentation as I'm trying to write a parser for
PostgreSQL.

Regards,
Rene Saarsoo

pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: SEQUENCE NAME syntax not documented for ALTER TABLE
Next
From: PG Doc comments form
Date:
Subject: Documentation for initdb option --waldir