Table partition with primary key in 11.3

Поиск
Список
Период
Сортировка
От User
Тема Table partition with primary key in 11.3
Дата
Msg-id 94935ac5-2f65-3c41-c14d-1b13da8e19ca@penek.org
обсуждение исходный текст
Ответы Re: Table partition with primary key in 11.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Jeremy Finzel
Дата:
Сообщение: Re: Bulk inserts into two (related) tables
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Bulk inserts into two (related) tables