Re: Row insertion w/ trigger to another table update causes row insertion to _not_ occur

Поиск
Список
Период
Сортировка
От Ow Mun Heng
Тема Re: Row insertion w/ trigger to another table update causes row insertion to _not_ occur
Дата
Msg-id D1109E8B2FB53A45BDB60F8145905CE902DB3F8C@wdmyexbe03.my.asia.wdc.com
обсуждение исходный текст
Ответ на Re: Row insertion w/ trigger to another table update causes row insertion to _not_ occur  (Sim Zacks <sim@compulab.co.il>)
Список pgsql-general

> From: Sim Zacks [mailto:sim@compulab.co.il]

>-----Original Message-----
>From: gsstark@gmail.com [mailto:gsstark@gmail.com] On Behalf Of Greg Stark
>
>On Tue, Jul 21, 2009 at 11:25 PM, Ow Mun Heng<ow.mun.heng@wdc.com> wrote:
>   RETURN NULL;
>
>Just make your trigger return NEW and it won't kill the insert to the
>child table.

>>I agree that is certainly one problem, but in any case an After Update
>>trigger would have worked.

I actually did try that, it didn't work. (I thought I mentioned that in the
original email. Oh well..)

Have yet to try the NEW method though

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

Предыдущее
От: Sim Zacks
Дата:
Сообщение: Re: Row insertion w/ trigger to another table update causes row insertion to _not_ occur
Следующее
От: Chris Spotts
Дата:
Сообщение: Re: array_agg crash?