Re: [GENERAL] stack depth

2015-08-17 Thread Tom Lane
Michael H writes: > I've tried the instructions at this URL: > https://ma.ttias.be/increase-open-files-limit-in-mariadb-on-centos-7-with-systemd/ > I either get the same errors appear when I run systemctl daemon-reload; It's unlikely that you can change the process's ulimit with just a reload.

Re: [GENERAL] stack depth

2015-08-17 Thread Michael H
Hi Tom, I've ran systemctl damon-reload; systemctl restart postgresql-9.4 and also tried rebooting. none of these options are working. Michael On 17/08/15 14:47, Tom Lane wrote: Michael H writes: I've tried the instructions at this URL: https://ma.ttias.be/increase-open-files-limit-in-mari

Re: [GENERAL] stack depth

2015-08-17 Thread Michael H
Just out of interest, Am I able to use more than 8MB stack depth for postgresql? it's continually warning me in /var/log/messages that I cannot exceed the maximum of 7680kB... is this a fixed maximum imposed by postgresql? or does postgresql find it's maximum from system parameters and just r

Re: [GENERAL] stack depth

2015-08-17 Thread Michael H
a little update, I've tried the instructions at this URL: https://ma.ttias.be/increase-open-files-limit-in-mariadb-on-centos-7-with-systemd/ I either get the same errors appear when I run systemctl daemon-reload; systemctl restart postgresql-9.4 Aug 17 09:08:49 db1 pg_ctl[3343]: < 2015-08-17

Re: [GENERAL] stack depth

2015-08-17 Thread Chris Mair
> I don't know if that works, but it is in line with the > "systemd broke things" idea... Rereading this, I realize this might come over as too harsh. What I meant was "the introduction of systemd broke things". So this wasn't meant as anti-systemd or anything. No flames intented ;) Bye, Chris.

Re: [GENERAL] stack depth

2015-08-17 Thread Chris Mair
>>> I've edited the /etc/security/limits.conf and added >>> * softstack 12288 >>> * hardstack 12288 >> on a CentOS 6.7 box I can confirm that adding those lines to >> /etc/security/limits.conf DOES increase the limit to 12288 >> (after a reboot). >> >> I don

Re: [GENERAL] stack depth

2015-08-17 Thread Michael H
Hi Chris, On 14/08/15 17:19, Chris Mair wrote: Hi All, I'm tuning up my database and need to increase the max_stack_depth parameter in postgresql.conf. I've edited the /etc/security/limits.conf and added * softstack 12288 * hardstack 12288 but I noticed

Re: [GENERAL] stack depth

2015-08-14 Thread Chris Mair
> Hi All, > > I'm tuning up my database and need to increase the max_stack_depth > parameter in postgresql.conf. > > I've edited the /etc/security/limits.conf and added > * softstack 12288 > * hardstack 12288 > > but I noticed the comments at the top of th

[GENERAL] stack depth

2015-08-14 Thread Michael H
Hi All, I'm tuning up my database and need to increase the max_stack_depth parameter in postgresql.conf. I've edited the /etc/security/limits.conf and added * softstack 12288 * hardstack 12288 but I noticed the comments at the top of the file - #This fi

Re: [GENERAL] stack depth limit exceeded

2011-03-31 Thread salah jubeh
Cc: pgsql Sent: Thu, March 31, 2011 6:41:27 PM Subject: Re: [GENERAL] stack depth limit exceeded salah jubeh writes: > Hello, > > I have written this function which is simply returns the entities which > depends >on a certain entity. It works fine if the > dependency tree is not

Re: [GENERAL] stack depth limit exceeded

2011-03-31 Thread Jerry Sievers
salah jubeh writes: > Hello, > > I have written this function which is simply returns the entities which > depends on a certain entity. It works fine if the > dependency tree is not long. However, If I have an entity which are linked to > many other entities I get > > stack depth limit exceeded

Re: [GENERAL] stack depth limit exceeded

2011-03-31 Thread Gurjeet Singh
If you are working with Postgres version >= 8.4, you should look at the WITH RECURSIVE (called recursive CTEs) feature: http://www.postgresql.org/docs/8.4/static/queries-with.html Regards, On Thu, Mar 31, 2011 at 12:19 PM, salah jubeh wrote: > > > Hello, > > I have written this function which

[GENERAL] stack depth limit exceeded

2011-03-31 Thread salah jubeh
Hello, I have written this function which is simply returns the entities which depends on a certain entity. It works fine if the dependency tree is not long. However, If I have an entity which are linked to many other entities I get stack depth limit exceeded HINT: Increase the configurat

Re: [GENERAL] stack depth limit exceeded

2010-09-05 Thread Thom Brown
On 5 September 2010 10:13, Ovid wrote: > I'm getting the following error from Postgres: > >  ERROR:  stack depth limit exceeded >  HINT:  Increase the configuration parameter "max_stack_depth", after ensuring > the platform's stack depth limit is adequate. >  CONTEXT:  SQL statement "UPDATE _test_

[GENERAL] stack depth limit exceeded

2010-09-05 Thread Ovid
I'm getting the following error from Postgres: ERROR: stack depth limit exceeded HINT: Increase the configuration parameter "max_stack_depth", after ensuring the platform's stack depth limit is adequate. CONTEXT: SQL statement "UPDATE _test_changed_table SET updates = updates + 1 WHERE

Re: [GENERAL] Stack Depth

2006-02-01 Thread Bob Pawley
"Bricklen Anderson" <[EMAIL PROTECTED]>; "Postgresql" Sent: Wednesday, February 01, 2006 5:22 PM Subject: Re: [GENERAL] Stack Depth On Wed, Feb 01, 2006 at 05:04:22PM -0800, Bob Pawley wrote: I do think I have a recursive problem. It's just hard to see at the

Re: [GENERAL] Stack Depth

2006-02-01 Thread Michael Fuhr
On Wed, Feb 01, 2006 at 05:04:22PM -0800, Bob Pawley wrote: > I do think I have a recursive problem. It's just hard to see at the moment. RAISE is your friend. If you can't figure out where the recursion is coming from then add debugging output to the trigger functions to see what gets called whe

Re: [GENERAL] Stack Depth

2006-02-01 Thread Bob Pawley
ED]>; "Postgresql" Sent: Wednesday, February 01, 2006 4:52 PM Subject: Re: [GENERAL] Stack Depth 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

Re: [GENERAL] Stack Depth

2006-02-01 Thread Michael Fuhr
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 wi

Re: [GENERAL] Stack Depth

2006-02-01 Thread Paul Tillotson
Bob Pawley wrote: Hi Folks I have three triggers and associated functions that fire on one insert and moves row ID information to five different tables.. I am getting an error message "stack depth limit exceeded". [snip] You've almost certainly got a recursive trigger in there. The def

Re: [GENERAL] Stack Depth

2006-02-01 Thread Bricklen Anderson
Bob Pawley wrote: Hi Folks I have three triggers and associated functions that fire on one insert and moves row ID information to five different tables.. I am getting an error message "stack depth limit exceeded". Is this normal for, what I consider, a small amount of information transfer?

[GENERAL] Stack Depth

2006-02-01 Thread Bob Pawley
Hi Folks   I have three triggers and associated functions that fire on one insert and moves row ID information to five different tables..   I am getting an error message "stack depth limit exceeded".   Is this normal for, what I consider, a small amount of information transfer?   If so, how

Re: [GENERAL] stack depth limit exceeded

2005-08-29 Thread Michael Fuhr
On Mon, Aug 29, 2005 at 01:45:32PM +1000, Jamie Deppeler wrote: > > CREATE TRIGGER "updateContact" AFTER INSERT OR UPDATE > ON FOR EACH ROW > EXECUTE PROCEDURE "contacts"."addContactField"(); Please show the actual commands that you're running; the above fails with a syntax error because it's mis

Re: [GENERAL] stack depth limit exceeded

2005-08-29 Thread Frank L. Parks
I think that you forgot the table name. CREATE TRIGGER "updateContact" AFTER INSERT OR UPDATE ON contacts FOR EACH ROW EXECUTE PROCEDURE "contacts"."addContactField"(); Frank Jamie Deppeler wrote: What i am trying to do is update the field contact with field values in firstname and lastname

Re: [GENERAL] stack depth limit exceeded

2005-08-28 Thread Jamie Deppeler
What i am trying to do is update the field contact with field values in firstname and lastname Trigger CREATE TRIGGER "updateContact" AFTER INSERT OR UPDATE ON FOR EACH ROW EXECUTE PROCEDURE "contacts"."addContactField"(); Procedure CREATE OR REPLACE FUNCTION "contacts"."addContactField" ()

Re: [GENERAL] stack depth limit exceeded

2005-08-28 Thread Tom Lane
Jamie Deppeler <[EMAIL PROTECTED]> writes: > At the moment i am trying to execute a very simple function but i am > getting the following error stack depth limit exceeded You didn't really show the complete context, but seeing that this is a trigger and it's trying to do an "UPDATE person" intern

Re: [GENERAL] stack depth limit exceeded

2005-08-28 Thread Michael Fuhr
On Mon, Aug 29, 2005 at 12:01:59PM +1000, Jamie Deppeler wrote: > At the moment i am trying to execute a very simple function but i am > getting the following error stack depth limit exceeded That's often a sign of infinite recursion, i.e., a function that keeps calling itself, either directly or

[GENERAL] stack depth limit exceeded

2005-08-28 Thread Jamie Deppeler
At the moment i am trying to execute a very simple function but i am getting the following error stack depth limit exceeded function CREATE OR REPLACE FUNCTION "contacts"."addContactField" () RETURNS trigger AS $body$ begin update contacts.person set "contact" = new.firstname where person.