Trigger aborted on error

Поиск
Список
Период
Сортировка
От Andrij Korud
Тема Trigger aborted on error
Дата
Msg-id Pine.BSF.3.96.991031213049.42375A-100000@NetSurfer.lp.lviv.ua
обсуждение исходный текст
Ответы Re: [HACKERS] Trigger aborted on error
Список pgsql-hackers
Hi.
I've such problem :
I table with primary key and in trigger try to insert into this table data
wich violate constrain (not uniq). When ectually executing SPI_execp I got
a message "ERROR: cannot insert a duplicate key into a unique index" and
trigger executing is aborted. What should I do in order to get this error
as a result from SPI_execp and continue trigger execution?

Thanks in advance,
Andriy Korud, Lviv, Ukraine



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Patch - Re: [HACKERS] view vs. inheritance hierarchy
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: [HACKERS] pgaccess 0.98