agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Rene Saarsoo <nene@triin.net>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: SEQUENCE NAME syntax not documented for ALTER TABLE
Date: Sun, 23 Mar 2025 11:31:37 -0400
Message-ID: <554780.1742743897@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMHv0CtmHUtXyoMcONRs6QVGHqG9utv=jZntU+5ur11A9eom=w@mail.gmail.com>
References: <CAMHv0CtmHUtXyoMcONRs6QVGHqG9utv=jZntU+5ur11A9eom=w@mail.gmail.com>
Rene Saarsoo <nene@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
view thread (3+ messages) latest in thread
Message-ID: <554780.1742743897@sss.pgh.pa.us>
Permalink: ../554780.1742743897@sss.pgh.pa.us/
Also on: postgresql.org/message-id/554780.1742743897@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, nene@triin.net, pgsql-docs@lists.postgresql.org
Subject: Re: SEQUENCE NAME syntax not documented for ALTER TABLE
In-Reply-To: <554780.1742743897@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox