From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | "contact(at)mettekou(dot)com" <contact(at)mettekou(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error |
Date: | 2024-02-15 13:22:58 |
Message-ID: | CAKFQuwaXCEdMCJAk7D+r7gCnNuYYntvyZsf+DcSi7Q4X10Mh3w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thursday, February 15, 2024, PG Bug reporting form <
noreply(at)postgresql(dot)org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 18345
> Logged by: Dylan Meysmans
> Email address: contact(at)mettekou(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-02-15 15:55:10 | Re: BUG #18343: Incorrect description in postgresql.conf for max_parallel_workers_per_gather |
Previous Message | PG Bug reporting form | 2024-02-15 11:58:18 | BUG #18345: Specifying index parameters for a PRIMARY KEY column constraint is a syntax error |