| От | Tom Lane |
|---|---|
| Тема | Re: max_stack_depth Exceeded |
| Дата | |
| Msg-id | 24415.1220628126@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: max_stack_depth Exceeded (Magnus Hagander <magnus@hagander.net>) |
| Ответы |
Re: max_stack_depth Exceeded
|
| Список | pgsql-general |
Magnus Hagander <magnus@hagander.net> writes:
> Ow Mun Heng wrote:
>> Am I doing something wrong?
> If your trigger is defined on the head_raw_all_test_2 table, then yes.
> Because it will do a new insert there, and the new insert will fire the
> trigger again, which will do a new insert, which wil lfire the trigger etc.
Of course, the way to have the row be inserted into the parent table is
to just let the trigger return it, instead of returning null.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера