Re: BUG #2511: violation of primary key on update with 2

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: BUG #2511: violation of primary key on update with 2
Дата
Msg-id 1151958108.2479.305.camel@localhost.localdomain
обсуждение исходный текст
Ответ на BUG #2511: violation of primary key on update with 2 tables  ("james" <james@mercstudio.com>)
Список pgsql-bugs
On Mon, 2006-07-03 at 11:14 +0000, james wrote:

> i think it's a bug in postgresql ...

Primary Key constraints are not deferrable currently. This is a known
situation so this isn't a bug.

I would advise you not to update the PK of your tables. That usually
represents a modelling problem and so I'm not sure if people will spend
time on trying to make that work.

Use an indirect key or some other mechanism, such as Inserting into
another table and renaming them.

--
  Simon Riggs
  EnterpriseDB          http://www.enterprisedb.com

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

Предыдущее
От: "Nestor Ramirez (Speedy)"
Дата:
Сообщение: Re: BUG #2507: Problem using two-phase commit
Следующее
От: Tomasz Ostrowski
Дата:
Сообщение: query very slow when enable_seqscan=on