Re: Stack Depth

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Bricklen Anderson <banderson(at)presinet(dot)com>
Cc: Bob Pawley <rjpawley(at)shaw(dot)ca>, Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Stack Depth
Date: 2006-02-02 00:52:26
Message-ID: 20060202005226.GA79205@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 01, 2006 at 03:48:38PM -0800, Bricklen Anderson wrote:
> Bob Pawley wrote:
> >I understand the default stack depth is about 2 meg. How do I determine
> >what the stack depth should be so that I avoid this error?
>
> check max_stack_depth in your postgresql.conf file

Before mucking with max_stack_depth, investigate whether the triggers
are causing infinite recursion (an insert fires a trigger, which
does an insert, which fires a trigger, which does an insert, ad
infinitum). If that's happening then increasing the stack depth
will merely prolong the agony.

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2006-02-02 01:04:22 Re: Stack Depth
Previous Message Paul Tillotson 2006-02-02 00:27:07 Re: Stack Depth