The following bug has been logged on the website:
Bug reference: 18345
Logged by: Dylan Meysmans
Email address: contact@mettekou.com
PostgreSQL version: 16.2
Operating system: openSUSE Tumbleweed
Description:
PostgreSQL 16.2 does not accept index parameters, such as an INCLUDE (...)
parameter, for a PRIMARY KEY column constraint in a CREATE TABLE DDL
statement. See https://dbfiddle.uk/6S1zwHRL for a minimal reproduction.
According to the documentation at
https://www.postgresql.org/docs/current/sql-createtable.html, this should be
allowed.