Problems with unique restrictions

Поиск
Список
Период
Сортировка
От Marcel Gsteiger
Тема Problems with unique restrictions
Дата
Msg-id s5a8a78c.006@milprog1.milprog.ch
обсуждение исходный текст
Ответы Re: Problems with unique restrictions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi all

I have a PL/PGSQL conversion procedure that reads a "source table" and then inserts tuples into several related tables.
RecentlyI upgraded from 8.1 to 8.2.0, then to 8.2.1. 

With 8.1 everything worked fine.

Now since I upgraded to 8.2 I have problems inserting data into tables that have unique indexes. Ugly enough, I get the
message'duplicate key violates unique constraint' when inserting the very first record into a table. This happens
everytimewhen the new tuple references another tuple that has been inserted just before this one in the same
transaction.

Putting a "SET CONSTRAINTS ALL DEFERRED" in my procedure does not help.

To me it looks that something with referential integrity checking goes wrong, but in this case the error message would
bemisleading. 

Is there any known change/problem in this area? If not, I will try to strip down my procedure to something simple that
documentsmy problems. 

Regards
--Marcel


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

Предыдущее
От: Shane Ambler
Дата:
Сообщение: Re: PostgreSQL Connections?
Следующее
От: Ashish Karalkar
Дата:
Сообщение: Re: PostgreSQL Connections?