Table partition with primary key in 11.3 - Mailing list pgsql-general

From User
Subject Table partition with primary key in 11.3
Date
Msg-id 94935ac5-2f65-3c41-c14d-1b13da8e19ca@penek.org
Whole thread Raw
Responses Re: Table partition with primary key in 11.3
List pgsql-general
CREATE TABLE public.test1 (
     x1 integer NOT NULL,
     x2 integer NOT NULL,
     CONSTRAINT test1_pkey PRIMARY KEY (x1) INCLUDE(x2)
) PARTITION BY RANGE (x2);

This query works in 11.1 but fails in 11.3 with messages:

ERROR: insufficient columns in PRIMARY KEY constraint definition
DETAIL: PRIMARY KEY constraint on table "test1" lacks column "x2" which 
is part of the partition key.
SQL state: 0A000





pgsql-general by date:

Previous
From: Jeremy Finzel
Date:
Subject: Re: Bulk inserts into two (related) tables
Next
From: Rich Shepard
Date:
Subject: Re: Bulk inserts into two (related) tables