pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
2+ messages / 2 participants
[nested] [flat]
* ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
@ 2023-08-18 10:50 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2023-08-18 10:50 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: kees.vivition@gmail.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/15/sql-altertable.html
Description:
Hi,
When the folloing SQL is executed:
ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
then an error is returned:
> ERROR: sequence option "restart" not supported here
According to the documention for Postgres 15 on ALTER TABLE, the provided
command seems to be correct. Omitting 'WITH' did not help.
A similar ALTER SEQUENCE table_id_seq RESTART WITH nnn works fine.
The involved Postgres version is: PostgreSQL 15.3, compiled by Visual C++
build 1914, 64-bit
I also found a very similar error in an old mail:
https://www.postgresql.org/message-id/ed41b243-63b2-f287-e7b0-8b2ac7266d66%402ndquadrant.com
Please fix the documentation or the functionality.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
@ 2023-08-20 16:48 David G. Johnston <david.g.johnston@gmail.com>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: David G. Johnston @ 2023-08-20 16:48 UTC (permalink / raw)
To: kees.vivition@gmail.com; pgsql-docs@lists.postgresql.org
On Sun, Aug 20, 2023 at 8:56 AM PG Doc comments form <noreply@postgresql.org>
wrote:
> When the folloing SQL is executed:
> ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error
> then an error is returned:
>
Yes, because if you take the RESTART branch in the syntax there is no word
SET preceding RESTART.
Please fix the documentation or the functionality.
>
The documentation is already correct.
David J.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-08-20 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 10:50 ALTER TABLE "table" ALTER COLUMN "id" SET RESTART WITH nnn raises error PG Doc comments form <noreply@postgresql.org>
2023-08-20 16:48 ` David G. Johnston <david.g.johnston@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox