Re: BUG #5770: Foreign key violation after insert

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5770: Foreign key violation after insert
Дата
Msg-id 14218.1290703969@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5770: Foreign key violation after insert  ("Martin Edlman" <edlman@fortech.cz>)
Ответы Re: BUG #5770: Foreign key violation after insert  (Martin Edlman <edlman@fortech.cz>)
Список pgsql-bugs
"Martin Edlman" <edlman@fortech.cz> writes:
> I encountered this problem during migration of the database from PgSQL 8.4
> (where it works) to PgSQL 9.0.1.

For me, this example fails on both 8.4 and 9.0.  It works on both after
removing the ill-considered quote_literal call here:

>     INSERT INTO tmp.amavis_user (id, email, priority, policy_id)
>     VALUES (NEW.id, quote_literal(NEW.email), prio, 1);

Perhaps you tried to migrate away from using EXECUTE at the same time
you were converting to 9.0?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5769: Problem with SPI_getvalue
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: BUG #5767: Memory Leak