pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error
2+ messages / 2 participants
[nested] [flat]

* BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error
@ 2024-02-15 11:58 PG Bug reporting form <noreply@postgresql.org>
  2024-02-15 13:22 ` Re: BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2024-02-15 11:58 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: contact@mettekou.com

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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error
  2024-02-15 11:58 BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error PG Bug reporting form <noreply@postgresql.org>
@ 2024-02-15 13:22 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2024-02-15 13:22 UTC (permalink / raw)
  To: contact@mettekou.com <contact@mettekou.com>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>

On Thursday, February 15, 2024, PG Bug reporting form <
noreply@postgresql.org> wrote:

> 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.
>
>
The syntax diagram has been generalized; you need to further consult the
primary key description below that to see what specific combinations are
valid.  In this case you need to use a table constraint with a named column
list to add the include clause to primary key.

David J.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-02-15 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-02-15 11:58 BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error PG Bug reporting form <noreply@postgresql.org>
2024-02-15 13:22 ` 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