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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition
Дата
Msg-id 20200929232225.GA16296@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition  (Tom Lane <tgl@sss.pgh.pa.us>)
RE: [EXTERNAL] Re: ERROR: insufficient columns in the PRIMARY KEY constraint definition  ("Godfrin, Philippe E" <Philippe.Godfrin@nov.com>)
Список pgsql-bugs
On 2020-Sep-30, David Rowley wrote:

> I didn't go with the same wording.  The reason was that I didn't feel
> the word "constraint" had to be mentioned twice.
> 
> I won't object if you or Alvaro want to keep Alvaro's suggestion though.

*Shrug* this seems good enough.  A purist could complain that it is
redundant, but in practice it's not important.

Here's the proposed error message fix, using the wording that saves
$1.99.  I agree that trying to cram the constraint type in the primary
message is uglier.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

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