Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition
Дата
Msg-id 725317.1601419418@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-bugs
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> On 2020-Sep-29, Tom Lane wrote:
>> Meh.  If you've read that bit you probably already understand that
>> pkeys are unique constraints.  I think the problem is with the error
>> text not the docs.

> Maybe mention PKs in parens:

> "Unique constraints (and[, by extension,] primary key constraints) on
> partitioned tables must include all the partition key columns. This
> limitation exists because PostgreSQL can only enforce uniqueness in each
> partition individually.".

I don't object to clarifying that (and that wording seems fine), but I
think fixing the error message is more important.  We'd not be having this
discussion if the OP had found that documentation.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition
Следующее
От: David Rowley
Дата:
Сообщение: Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition