Rene Saarsoo <n...@triin.net> writes: > The documentation for ALTER TABLE [1] doesn't make it clear that the > following is allowed: > ... > It only references the sequence options allowed in CREATE SEQUENCE or ALTER > SEQUENCE, unlike the CREATE TABLE [2] documentation, which does > specifically state [3]:
Huh? I see <varlistentry id="sql-altertable-desc-generated-identity"> <term><literal>ADD GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY</literal></term> <term><literal>SET GENERATED { ALWAYS | BY DEFAULT }</literal></term> <term><literal>DROP IDENTITY [ IF EXISTS ]</literal></term> <listitem> <para> These forms change whether a column is an identity column or change the generation attribute of an existing identity column. See <link linkend="sql-createtable"><command>CREATE TABLE</command></link> for details. Where do you see a pointer to CREATE SEQUENCE on that page? regards, tom lane