Re: max_stack_depth Exceeded

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: max_stack_depth Exceeded
Дата
Msg-id 48C0EF63.9050406@hagander.net
обсуждение исходный текст
Ответ на max_stack_depth Exceeded  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: max_stack_depth Exceeded  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Список pgsql-general
Ow Mun Heng wrote:
> Hi,
>
> I'm playing around with triggers to implement partitioning.
> I hit something which I don't know what and I don't have internet here
> at work to find out what is the cause.
>
>
> ERROR : stack depth limit exceeded
>
> I see that this is one of the options in postgresql.conf but I don't
> know exactly what it is.

Sounds like you may have created a situation with infinite recursion.

Like in some branch your trigger is inserting back into the parent
table, thus firing the trigger again in an endless loop, instead of
inserting it into the proper child table.

//Magnus


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

Предыдущее
От: Ow Mun Heng
Дата:
Сообщение: max_stack_depth Exceeded
Следующее
От: Ow Mun Heng
Дата:
Сообщение: Re: max_stack_depth Exceeded