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

From Rene Saarsoo
Subject SEQUENCE NAME syntax not documented for ALTER TABLE
Date
Msg-id CAMHv0CtmHUtXyoMcONRs6QVGHqG9utv=jZntU+5ur11A9eom=w@mail.gmail.com
Whole thread Raw
Responses Re: SEQUENCE NAME syntax not documented for ALTER TABLE
List pgsql-docs
The documentation for ALTER TABLE [1] doesn't make it clear that the following is allowed:
ALTER TABLE tbl
ALTER COLUMN id
ADD GENERATED BY DEFAULT AS IDENTITY (  SEQUENCE NAME my_name
);
It only references the sequence options allowed in CREATE SEQUENCE or ALTER SEQUENCE, unlike the CREATE TABLE [2] documentation, which does specifically state [3]:

> The available options include those shown for CREATE SEQUENCE,
> plus SEQUENCE NAME name, LOGGED, and UNLOGGED

With best,
Rene Saarsoo

pgsql-docs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Ambiguity in IS JSON description and logic
Next
From: Tom Lane
Date:
Subject: Re: SEQUENCE NAME syntax not documented for ALTER TABLE