Re: SEQUENCE NAME syntax not documented for ALTER TABLE

From: Rene Saarsoo <nene(at)triin(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: SEQUENCE NAME syntax not documented for ALTER TABLE
Date: 2025-03-23 16:25:17
Message-ID: CAMHv0CuK7+BaR=gimvCcw_9pRS+9eoxi8pTFvmz5wBq1OCyKNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sun, 23 Mar 2025 at 17:31, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2025-03-25 15:58:31 Documentation for initdb option --waldir
Previous Message Tom Lane 2025-03-23 15:31:37 Re: SEQUENCE NAME syntax not documented for ALTER TABLE