From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: onavratil@monetplus.cz
Subject: BUG #18543: Mistake in docs example
Date: Wed, 17 Jul 2024 12:53:39 +0000
Message-ID: <18543-93c721689f9928e8@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 18543
Logged by: Ondřej Navrátil
Email address: onavratil@monetplus.cz
PostgreSQL version: 16.3
Operating system: windows
Description:
https://www.postgresql.org/docs/17/ddl-identity-columns.html
The second example:
```
CREATE TABLE people (
id bigint GENERATED BY DEFAULT IDENTITY,
...,
);
```
is missing **AS**, correct version:
```
CREATE TABLE people (
id bigint GENERATED BY DEFAULT AS IDENTITY,
...,
);
```
... as per syntax here
https://www.postgresql.org/docs/current/sql-createtable.html
```
...
GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( sequence_options ) ] |
...
```
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-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, onavratil@monetplus.cz
Subject: Re: BUG #18543: Mistake in docs example
In-Reply-To: <18543-93c721689f9928e8@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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